halleck45/php-metrics
PhpMetrics analyzes PHP projects and classes, producing a readable HTML report packed with code metrics like cyclomatic complexity, maintainability index, and coupling. Install it as a dev dependency via Composer and run it against any folder to spot risky code and track quality over time.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sebastian/lines-of-code | 0.88 | A lightweight PHP library from Sebastian Bergmann for counting lines of code in PHP source files, reporting logical and physical line counts. Used by PHPUnit's code coverage tooling and handy for building metrics, reports, and static analysis tools. | 1,180 | 1,182 | 9 | 24M | 1 | 21.6 | 61.8 | BSD-3-Clause | 3 months ago | |
| halleck45/phpmetrics-collector-bundle | 0.87 | Symfony bundle that runs PhpMetrics against your codebase, saves the reports in a database via Doctrine, and serves a web dashboard for tracking code quality metrics over time. Includes console commands to collect metrics and compare trends between builds. | 51 | 51 | 7 | 3 | 2 | 0.9 | 0.3 | MIT | — | |
| phpmetrics/phpmetrics | 0.87 | PhpMetrics is a static analysis tool for PHP that computes metrics for projects and classes and generates beautiful, readable HTML reports. Install it via Composer, run the binary against any folder, and explore complexity, maintainability, and quality insights right in your browser. | 2,617 | 2,620 | 261 | 444K | 2 | 46.4 | 35.8 | MIT | 2 months ago | |
| php-static-analysis/attributes | 0.87 | PHP attributes that let you annotate classes, methods, and properties with metadata for static analysis tools, improving type inference, purity checks, and IDE support. Lightweight, framework-agnostic, and easy to drop into existing codebases. | 94 | — | 0 | — | 0 | 0.5 | — | MIT | 1 year ago |
|
| nunomaduro/phpinsights | 0.87 | PHP Insights analyzes your PHP code quality, coding style, architecture, and complexity straight from the terminal. Works out of the box with Laravel, Symfony, Yii, Magento, and more, with built-in checks that keep code reliable and loosely coupled. | 5,647 | 5,650 | 300 | 403K | 68 | 75.7 | 56.6 | MIT | 1 month ago | |
| sebastian/complexity | 0.86 | 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. | 1,260 | 1,260 | 12 | 23M | 1 | 13.1 | 57.8 | BSD-3-Clause | 9 months ago | |
| zerkalica/php-code-browser | 0.86 | A lightweight PHP package for exploring source code, navigating files, and inspecting classes and methods in a project. It provides a simple interface for understanding package internals, browsing code structure, and quickly locating implementation details during development. | 0 | 1 | 1 | 5 | 0 | 0.0 | 10.8 | BSD-3-Clause | — | |
| phploc/phploc | 0.86 | 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,336 | 2,378 | 164 | 122K | 0 | 8.3 | 16.8 | BSD-3-Clause | — | |
| stefanzweifel/laravel-stats-phploc | 0.86 | Fork of sebastianbergmann/phploc used to keep wnx/laravel-stats compatible across Laravel versions by supporting multiple sebastian/version releases. Measures PHP project size and structure (LOC, complexity, dependencies). Not intended for real projects. | 5 | 5 | 1 | 34K | 0 | 21.5 | 60.4 | BSD-3-Clause | 3 months ago | |
| beberlei/metrics | 0.86 | A lightweight PHP metrics library for instrumenting applications with counters, gauges, and timings. Pluggable collectors send measurements to backends like StatsD and Graphite, keeping monitoring code decoupled from your application logic. | 337 | 341 | 38 | 17K | 0 | 20.1 | 27.2 | MIT | 1 month ago | |
| phpbench/phpbench | 0.86 | PHPBench is a benchmark runner for PHP, analogous to PHPUnit but measuring performance rather than correctness. It repeats code, samples iterations in isolated processes, and offers customizable reports, baseline storage and comparison, memory tracking, and assertions to catch regressions. | 2,028 | 2,022 | 132 | 672K | 29 | 46.1 | 52.8 | MIT | 4 months ago | |
| infocyph/phpforge | 0.86 | PHPForge from infocyph is a lightweight PHP scaffolding and code generation toolkit for forging boilerplate classes, files, and project structures from simple commands or templates, helping streamline everyday development workflows. | 1 | 1 | 0 | 32K | 0 | 0.0 | 55.3 | MIT | — | |
| wyrihaximus/coding-standard | 0.85 | wyrihaximus/coding-standard is a PHP coding standard package for defining and enforcing consistent code style across PHP projects. It provides a shared standard to help keep formatting and conventions uniform in a codebase. | 0 | 0 | 0 | 200K | 1 | 29.9 | 65.6 | MIT | 1 week ago | |
| amoifr/phpquality-bundle | 0.85 | 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 | — | — | |
| eliseekn/laravel-metrics | 0.85 | Generate metrics and trends from your Laravel models for dashboards. Group counts and sums by day, month, or year, set custom date/label columns and tables, use date ranges, and query via Eloquent or the query builder. Supports MySQL, PostgreSQL, and SQLite. | 138 | 138 | 8 | 825 | 0 | 22.0 | 12.8 | MIT | 4 months ago | |
| phpstan/phpstan | 0.85 | PHPStan is a PHP static analysis tool that finds bugs in your code without running it. It catches whole classes of errors before tests are written, bringing compiled-language-style correctness checks to PHP projects. | 14,147 | 14,221 | 972 | 19M | 1,056 | 94.9 | 77.1 | MIT | 4 days ago | |
| quiet-metrics/php-metrics | 0.85 | Lightweight metrics library for PHP applications. Collect counters, gauges, and timing data, then expose them to your preferred backend. Simple API, framework-agnostic, PSR-friendly, and easy to wire into Laravel or any PHP project. | 0 | — | 0 | — | 0 | 19.7 | — | MIT | 1 week ago |
|
| liuggio/statsd-php-client | 0.85 | A lightweight PHP client for StatsD and Etsy StatsD metrics. Send counters, gauges, timers, and sets with sampling and batching support, plus configurable backends, so you can instrument your application and feed data into Graphite dashboards. | 113 | — | 31 | — | 8 | 4.5 | 5.3 | MIT | 11 years ago |
|
| genealabs/php-coding-standards | 0.85 | A ready-made set of PHP coding standards from GeneaLabs for Laravel and general PHP projects. Drop-in configuration helps enforce consistent style, simplify linting, and keep your codebase clean, uniform, and easy to maintain across teams. | 16 | 16 | 1 | 266 | 2 | 0.9 | 17.2 | — | 4 years ago | |
| dragon-code/benchmark | 0.85 | dragon-code/benchmark is a simple PHP benchmarking package for comparing code execution speed across multiple options. Use bench() or Benchmark with named closures and view min, max, avg, and total timings in the console. Install via Composer as a dev dependency. | 121 | 120 | 4 | 2K | 0 | 20.7 | 18.0 | MIT | 6 months ago |
How can I help you explore Laravel packages today?