sebastian/lines-of-code
Library for counting the lines of code in PHP source code
5.0.2
597M downloads/mo
#66 most downloaded on composer
sebastianbergmann/lines-of-code
What this package is like to depend on
Last release 1 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
4 releases in the last 12 months
see the full history below
Release timeline
15 releases · Jul 2020 to Jul 2026
2021
2022
2023
2024
2025
2026
Releases
latest 15-
5.0.209 Jul 2026 -
5.0.119 May 2026Release notes
Open source →Fixed
- #6: Lines with multiple comments are double-counted, yielding negative
$nonCommentLinesOfCode
Release notes
Open source →Fixed
- #6: Lines with multiple comments are double-counted, yielding negative
$nonCommentLinesOfCode
- #6: Lines with multiple comments are double-counted, yielding negative
-
5.0.006 Feb 2026 -
4.0.119 May 2026Release notes
Open source →Fixed
- #6: Lines with multiple comments are double-counted, yielding negative
$nonCommentLinesOfCode
Release notes
Open source →Fixed
- #6: Lines with multiple comments are double-counted, yielding negative
$nonCommentLinesOfCode
- #6: Lines with multiple comments are double-counted, yielding negative
-
4.0.007 Feb 2025 -
3.0.103 Jul 2024Release notes
Open source →Changed
- This project now uses PHPStan instead of Psalm for static analysis
Release notes
Open source →Changed
- This project now uses PHPStan instead of Psalm for static analysis
-
3.0.002 Feb 2024Release notes
Open source →Removed
- This component now requires PHP-Parser 5
- This component is no longer supported on PHP 8.1
-
2.0.221 Dec 2023 -
2.0.131 Aug 2023 -
2.0.003 Feb 2023Release notes
Open source →Removed
- This component is no longer supported on PHP 7.3, PHP 7.4 and PHP 8.0
-
1.0.422 Dec 2023Nothing published for this version
-
1.0.328 Nov 2020Release notes
Open source →Fixed
- Files that do not contain a newline were not handled correctly
Changed
- A line of code is no longer considered to be a Logical Line of Code if it does not contain an
Exprnode
-
1.0.226 Oct 2020Release notes
Open source →Fixed
SebastianBergmann\LinesOfCode\Exceptionnow correctly extends\Throwable
-
1.0.128 Sep 2020Release notes
Open source →Changed
- Changed PHP version constraint in
composer.jsonfrom^7.3 || ^8.0to>=7.3
- Changed PHP version constraint in
-
1.0.022 Jul 2020