Registry / build-tool / phploc-phploc

phploc-phploc

JSON →
library7.0.2phppackagistunverified

A tool for quickly measuring the size of a PHP project.

composer require phploc/phploc
INSTALL
IMPORT
SIG · PHPLOC-PHPLOC
P
phploc-phploc
build-toolphpv7.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Analyser
use SebastianBergmann\PHPLOC\Analyser;

Analyze a PHP project to count lines of code and other metrics.

use SebastianBergmann\PHPLOC\Analyser; $analyser = new Analyser(); $result = $analyser->countFiles(['/path/to/project'], false); echo 'Lines of code: ' . $result['loc'];
Debug
Known issues
breakingOutput format changed in version 7.0.
fix
Check the new array keys (e.g., 'loc' instead of 'linesOfCode').
affects: >=7.0.0
Upgrade
Version history
7.0.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
phploc-phploc — pip install phploc-phploc · libregistry