PackageTrack
Sign in Get early access

sebastian/complexity

Library for calculating the complexity of PHP code units

6.0.0 596M downloads/mo #69 most downloaded on composer sebastianbergmann/complexity

What this package is like to depend on

Last release 6 months ago

06 Feb 2026

Release timing varies

gaps range from 4 weeks to 2.3 years

Nearly every release is documented

notes for 12 of 13 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

13 releases · first in 2020

1 release in the last 12 months

see the full history below

Release timeline

13 releases · Jul 2020 to Feb 2026
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 13
  1. 6.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 →
  2. 5.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 →
  3. 4.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 →
  4. 4.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 →
  5. 3.2.0 21 Dec 2023
    Release notes

    Added

    • ComplexityCollection::sortByDescendingCyclomaticComplexity()
    • Support for match arms

    Changed

    • This component is now compatible with nikic/php-parser 5.0
    Open source →
  6. 3.1.0 28 Sep 2023
    Release notes

    Added

    • Complexity::isFunction() and Complexity::isMethod()
    • ComplexityCollection::isFunction() and ComplexityCollection::isMethod()
    • ComplexityCollection::mergeWith()

    Fixed

    • Anonymous classes are not processed correctly
    Open source →
  7. 3.0.1 31 Aug 2023
    Release notes

    Fixed

    • #7: ComplexityCalculatingVisitor tries to process interface methods
    Open source →
  8. 3.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 →
  9. 2.0.3 22 Dec 2023

    Nothing published for this version

  10. 2.0.2 26 Oct 2020
    Release notes

    Fixed

    • SebastianBergmann\Complexity\Exception now correctly extends \Throwable
    Open source →
  11. 2.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 →
  12. 2.0.0 25 Jul 2020
    Release notes

    Removed

    • The ParentConnectingVisitor has been removed (it should have been marked as @internal)
    Open source →
  13. 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