Registry / testing / sebastian-complexity

sebastian-complexity

JSON →
library6.0.0phppackagistunverified

Library for calculating the complexity of PHP code units

composer require sebastian/complexity
INSTALL
IMPORT
SIG · SEBASTIAN-COMPLEXI
S
sebastian-complexity
testingphpv6.0.0
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.

Complexity
use SebastianBergmann\Complexity\Complexity;

Calculate code complexity

use SebastianBergmann\Complexity\Complexity; $complexity = new Complexity(); $result = $complexity->calculate('path/to/file.php');
Debug
Known issues
breakingRequires PHP 8.0 or higher
fix
Upgrade PHP to 8.0+
affects: >=6.0.0
Upgrade
Version history
6.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
14
Resources
sebastian-complexity — pip install sebastian-complexity · libregistry