PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 15
  1. 5.0.2 09 Jul 2026
    Release notes

    Fixed

    • Guarantee that $linesOfCode is always a positive integer
    Open source →
    Release notes

    Fixed

    • Guarantee that $linesOfCode is always a positive integer
    Open source →
  2. 5.0.1 19 May 2026
    Release notes

    Fixed

    • #6: Lines with multiple comments are double-counted, yielding negative $nonCommentLinesOfCode
    Open source →
    Release notes

    Fixed

    • #6: Lines with multiple comments are double-counted, yielding negative $nonCommentLinesOfCode
    Open source →
  3. 5.0.0 06 Feb 2026
    Release notes

    Removed

    • This component is no longer supported on PHP 8.3
    Open source →
    Release notes

    Removed

    • This component is no longer supported on PHP 8.3
    Open source →
  4. 4.0.1 19 May 2026
    Release notes

    Fixed

    • #6: Lines with multiple comments are double-counted, yielding negative $nonCommentLinesOfCode
    Open source →
    Release notes

    Fixed

    • #6: Lines with multiple comments are double-counted, yielding negative $nonCommentLinesOfCode
    Open source →
  5. 4.0.0 07 Feb 2025
    Release notes

    Removed

    • This component is no longer supported on PHP 8.2
    Open source →
    Release notes

    Removed

    • This component is no longer supported on PHP 8.2
    Open source →
  6. 3.0.1 03 Jul 2024
    Release notes

    Changed

    • This project now uses PHPStan instead of Psalm for static analysis
    Open source →
    Release notes

    Changed

    • This project now uses PHPStan instead of Psalm for static analysis
    Open source →
  7. 3.0.0 02 Feb 2024
    Release notes

    Removed

    • This component now requires PHP-Parser 5
    • This component is no longer supported on PHP 8.1
    Open source →
  8. 2.0.2 21 Dec 2023
    Release notes

    Changed

    • This component is now compatible with nikic/php-parser 5.0
    Open source →
  9. 2.0.1 31 Aug 2023
    Release notes

    Changed

    • Improved type information
    Open source →
  10. 2.0.0 03 Feb 2023
    Release notes

    Removed

    • This component is no longer supported on PHP 7.3, PHP 7.4 and PHP 8.0
    Open source →
  11. 1.0.4 22 Dec 2023

    Nothing published for this version

  12. 1.0.3 28 Nov 2020
    Release notes

    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 Expr node
    Open source →
  13. 1.0.2 26 Oct 2020
    Release notes

    Fixed

    • SebastianBergmann\LinesOfCode\Exception now correctly extends \Throwable
    Open source →
  14. 1.0.1 28 Sep 2020
    Release notes

    Changed

    • Changed PHP version constraint in composer.json from ^7.3 || ^8.0 to >=7.3
    Open source →
  15. 1.0.0 22 Jul 2020
    Release notes
    • Initial release
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive