Registry / utility / sebastian-lines-of-code

sebastian-lines-of-code

JSON →
library5.0.1phppackagistunverified

Library for counting the lines of code in PHP source code.

composer require sebastian/lines-of-code
INSTALL
IMPORT
SIG · SEBASTIAN-LINES-OF
S
sebastian-lines-of-code
utilityphpv5.0.1
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.

Counter
use SebastianBergmann\LinesOfCode\Counter;

Count lines of code in a PHP file using the Counter class.

use SebastianBergmann\LinesOfCode\Counter; $counter = new Counter(); $result = $counter->countLinesOfCode(new \SplFileInfo('path/to/file.php')); echo $result->linesOfCode();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
sebastian-lines-of-code — pip install sebastian-lines-of-code · libregistry