sebastian/complexity
Compute code complexity metrics for PHP units (functions, methods, classes). sebastian/complexity provides programmatic analysis useful for static analysis tools, quality gates, and CI reporting; install via Composer for project or dev-only use.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| idiosyncratic/coding-standard | 0.84 | Idiosyncratic coding standard for all Idiosyncratic Projects, based on Doctrine Coding Standard. Adds @public-read-only for private properties exposed as read-only (e.g., via __get) and disables alignment of equals signs in assignments. | 0 | 0 | 0 | 6 | 0 | 0.0 | 11.7 | — | — | |
| sebastian/version | 0.82 | Library for deriving a PHP project’s version from Git. Provide a release string and project path; Version::asString() returns the release, a -dev suffix, or git describe output (tags/commits) depending on repo state and release format. | 6,583 | 6,602 | 36 | 13M | 0 | 47.4 | 53.4 | BSD-3-Clause | 2 months ago | |
| sebastian/phpcpd | 0.79 | PHPCPD is a copy/paste detector for PHP that finds duplicated code (clones) across files and reports duplicate lines and locations. Distributed as a PHAR and installable via Phive. Note: this project is unmaintained and archived. | 2,213 | 2,253 | 189 | 397K | 0 | 8.4 | 22.0 | BSD-3-Clause | — | |
| phpmd/phpmd | 0.79 | PHPMD (PHP Mess Detector) scans PHP code for potential problems like overly complex methods, unused parameters, and suspicious code. It’s a CLI tool with configurable rulesets, Baseline support, and CI-friendly output formats to keep codebases clean. | 2,418 | 2,494 | 350 | 2M | 86 | 68.3 | 81.5 | BSD-3-Clause | 2 years ago | |
| sebastian/object-enumerator | 0.79 | Traverses array structures and object graphs to enumerate all referenced objects, helping you inspect, analyze, or collect objects reachable from complex data structures. Install via Composer for production or as a dev dependency for testing and tooling. | 6,542 | 6,546 | 9 | 12M | 0 | 46.2 | 53.2 | BSD-3-Clause | 2 months ago | |
| sebastian/lines-of-code | 0.78 | sebastian/lines-of-code is a lightweight PHP library for counting lines of code in PHP source files. Useful for reporting, metrics, and tooling, it can be installed via Composer as a runtime or dev dependency. | 1,170 | 1,172 | 8 | 12M | 2 | 27.4 | 65.0 | BSD-3-Clause | 2 months ago | |
| sebastian/environment | 0.77 | Runtime environment helper for PHP projects. Detects PHP/HHVM runtime specifics so you can choose safe execution paths, handle version and platform differences, and write portable code with minimal conditionals—useful in libraries and test tooling. | 6,776 | 6,790 | 37 | 13M | 2 | 50.5 | 53.8 | BSD-3-Clause | 4 days ago | |
| sebastian/type | 0.77 | sebastian/type provides lightweight value objects that model PHP’s type system. Useful for tools and libraries that need to represent, compare, and work with types (including complex and composite types) in a consistent, structured way. | 1,497 | 1,499 | 13 | 12M | 1 | 31.0 | 63.6 | BSD-3-Clause | 2 months ago | |
| sirbrillig/phpcs-variable-analysis | 0.77 | Static analysis rules for PHP_CodeSniffer that detect undefined, unused, and improperly scoped variables in PHP code. Helps enforce cleaner code, catches subtle variable bugs early, and improves overall code quality in CI and local linting workflows. | 144 | 144 | 17 | 1M | 20 | 36.4 | 72.2 | NOASSERTION | 6 months ago | |
| nunomaduro/phpinsights | 0.76 | PHP Insights is a terminal tool to analyze PHP code quality, style, architecture, and complexity. Works out of the box with Laravel (artisan insights), Symfony, Yii, Magento, and more, with built-in checks for reliability and loose coupling. | 5,591 | 5,593 | 294 | 292K | 68 | 77.0 | 55.2 | MIT | 1 month ago | |
| phploc/phploc | 0.75 | phploc is a command-line tool for quickly measuring the size of a PHP project, reporting LOC/NCLOC/CLOC, LLOC, and counts of classes, traits, methods, functions, and cyclomatic complexity. Archived: no longer maintained. | 2,348 | 2,378 | 162 | 107K | 0 | 8.3 | 16.3 | BSD-3-Clause | — | |
| markbaker/complex | 0.75 | PHP class library for complex number math. Create and operate on complex values with add/subtract/multiply/divide plus polar functions (theta, rho), conjugate/inverse, roots, logs, exponentials, powers, and a full set of trig and hyperbolic functions. | 1,655 | 1,657 | 12 | 7M | 1 | 30.2 | 59.8 | MIT | 4 years ago | |
| sebastian/global-state | 0.71 | sebastian/global-state snapshots and restores PHP global state (globals, superglobals, ini settings, etc.), extracted from PHPUnit as a standalone component. Useful for test isolation and detecting side effects by capturing state before and after code runs. | 6,606 | 6,608 | 19 | 12M | 0 | 47.1 | 53.0 | BSD-3-Clause | 2 months ago |
How can I help you explore Laravel packages today?