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,569 | 6,599 | 36 | 14M | 1 | 36.6 | 50.0 | BSD-3-Clause | 7 months ago | |
| tomasvotruba/cognitive-complexity | 0.82 | — | 166 | 167 | 3 | 226K | 0 | 0.9 | 43.3 | MIT | — | |
| phpcq/phpcq | 0.81 | — | 17 | 17 | 3 | 196 | 9 | 14.3 | 19.5 | MIT | 7 months ago | |
| bigoen/redis-bundle | 0.80 | — | 5 | 5 | 0 | 11 | 0 | 3.0 | 6.3 | MIT | 2 years 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,209 | 2,253 | 189 | 395K | 0 | 8.4 | 22.0 | BSD-3-Clause | — | |
| lendable/composer-license-checker | 0.79 | Checks your Composer dependencies’ licenses against configurable allow rules (by SPDX license, vendor, or package) to help ensure OSS compliance and reduce legal risk. Works in CI and can read license data from Composer’s installed.json or composer licenses. | 15 | 15 | 3 | 17K | 4 | 13.6 | 46.9 | MIT | 8 months ago | |
| 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,449 | 2,521 | 357 | 2M | 60 | 44.8 | 58.9 | BSD-3-Clause | 2 years ago | |
| sebastian/lines-of-code | 0.79 | Count lines of code in PHP source with sebastian/lines-of-code. A lightweight library for analyzing PHP files and reporting LOC metrics, useful for tooling, CI checks, and development workflows. Install easily via Composer as a runtime or dev dependency. | 1,179 | 1,181 | 9 | 14M | 1 | 25.8 | 64.2 | BSD-3-Clause | 2 months ago | |
| amoifr/phpquality-bundle | 0.78 | Symfony bundle and Docker image for PHP static code analysis. Generates reports on complexity, maintainability, coupling, architecture/SOLID layer violations, and coverage. Built as a modern replacement for the unmaintained phpmetrics/phpmetrics. | 4 | 4 | 0 | 2 | 0 | 0.0 | 2.0 | — | — | |
| phpcq/repository-definition | 0.78 | Repository definition package for the PHPCQ (PHP Code Quality) project, used to automate and configure code quality checks in CI pipelines. Part of the phpcq.org ecosystem built around tools like PHP_CodeSniffer and PHPMD. | 0 | 0 | 0 | 38 | 0 | 0.0 | 22.0 | MIT | — | |
| bernardosecades/php-quality-tools | 0.77 | Collection of PHP quality and static analysis tools bundled for easier setup and consistent code standards across projects, including linters, formatters, and test/coverage helpers to streamline CI and improve code health. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| sebastian/environment | 0.77 | sebastian/environment helps PHP libraries handle runtime-specific execution paths by detecting and describing the current environment (PHP version, features, etc.). Useful for writing portable code that adapts to different runtimes and configurations. | 6,766 | 6,788 | 36 | 15M | 1 | 47.3 | 53.1 | BSD-3-Clause | 3 months ago | |
| nunomaduro/phpinsights | 0.77 | PHP Insights analyzes PHP code quality, style, architecture, and complexity from your terminal. Works out of the box with Laravel (artisan insights), Symfony, Yii, Magento, and more, with built-in checks for reliability and loose coupling. | 5,631 | 5,621 | 300 | 268K | 69 | 71.3 | 52.1 | MIT | 5 months ago | |
| arty/php-coding-standard | 0.77 | — | 2 | 3 | 0 | 10 | 0 | 10.0 | 10.6 | MIT | 8 months ago | |
| sebastian/type | 0.77 | sebastian/type provides lightweight value objects for representing and working with PHP’s type system (built-in, class, union, intersection, nullable, etc.). Useful for static analysis tools, reflection helpers, and test utilities that need precise type modeling. | 1,502 | 1,504 | 13 | 14M | 1 | 31.6 | 64.9 | BSD-3-Clause | 1 month ago | |
| sirbrillig/phpcs-import-detection | 0.77 | PHPCS sniffs that warn when classes/functions/constants are used without an explicit import or fully-qualified name, and flags unused imports. Helps catch namespace issues during refactors (note: PHP 8 tokenization bug/performance caveats). | 33 | 32 | 8 | 9K | 10 | 8.4 | 36.4 | NOASSERTION | 3 years ago | |
| phpmetrics/phpmetrics | 0.76 | PhpMetrics analyzes PHP codebases and generates a clean, readable HTML report with class/project metrics. Install via Composer and run against a folder to produce a browsable report. Supports configuration files for options, rules, and CI use. | 2,613 | 2,620 | 261 | 444K | 1 | 50.0 | 35.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,343 | 2,378 | 164 | 99K | 0 | 8.3 | 16.0 | 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,663 | 1,663 | 12 | 8M | 1 | 10.3 | 51.5 | MIT | 5 years ago |
How can I help you explore Laravel packages today?