NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #66 most downloaded on Packagist
Library for counting the lines of code in PHP source code
Last release 3 months ago
09 Jul 2026
Release timing varies
gaps range from 4 weeks to 2.2 years
Nearly every release is documented
notes for 14 of 15 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
15 releases · first in 2020
One column per quarter.
Guarantee that $linesOfCode is always a positive integer
$linesOfCode is always a positive integerFixed #6 : Lines with multiple comments are double-counted, yielding negative $nonCommentLinesOfCode
$nonCommentLinesOfCodeThis component is no longer supported on PHP 8.3
Fixed #6 : Lines with multiple comments are double-counted, yielding negative $nonCommentLinesOfCode
$nonCommentLinesOfCodeThis component is no longer supported on PHP 8.2
This project now uses PHPStan instead of Psalm for static analysis
This component now requires PHP-Parser 5
This component is now compatible with nikic/php-parser 5.0
nikic/php-parser 5.0### Changed * Improved type information
This component is no longer supported on PHP 7.3, PHP 7.4 and PHP 8.0
Nothing published for this version
Files that do not contain a newline were not handled correctly
Expr nodeSebastianBergmann\LinesOfCode\Exception now correctly extends \Throwable
SebastianBergmann\LinesOfCode\Exception now correctly extends \ThrowableChanged PHP version constraint in composer.json from ^7.3 || ^8.0 to >=7.3
composer.json from ^7.3 || ^8.0 to >=7.3[5.0.2]: https://github.com/sebastianbergmann/lines-of-code/compare/5.0.1...5.0.2 [5.0.1]: https://github.com/sebastianbergmann/lines-of-code/compare/
Your coding agent can read these notes before it upgrades. Set up the MCP server →