PHPackages                             halleck45/php-metrics - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. halleck45/php-metrics

Abandoned → [phpmetrics/phpmetrics](/?search=phpmetrics%2Fphpmetrics)Library[Testing &amp; Quality](/categories/testing)

halleck45/php-metrics
=====================

Static analyzer tool for PHP : Coupling, Cyclomatic complexity, Maintainability Index, Halstead's metrics... and more !

v3.0.0rc8(1y ago)2.6k14.4k264[2 PRs](https://github.com/phpmetrics/PhpMetrics/pulls)6MITPHPPHP &gt;=8.1CI passing

Since Dec 18Pushed 7mo ago78 watchersCompare

[ Source](https://github.com/phpmetrics/PhpMetrics)[ Packagist](https://packagist.org/packages/halleck45/php-metrics)[ Docs](http://www.phpmetrics.org)[ RSS](/packages/halleck45-php-metrics/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (14)Versions (75)Used By (6)

PhpMetrics
==========

[](#phpmetrics)

[![Packagist Downloads](https://camo.githubusercontent.com/3b1335a76662c0aec5282193978ac84cb4c139b0ff6e1a9d66a5d3e77f775a63/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068706d6574726963732f7068706d657472696373)](https://camo.githubusercontent.com/3b1335a76662c0aec5282193978ac84cb4c139b0ff6e1a9d66a5d3e77f775a63/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068706d6574726963732f7068706d657472696373)[![License](https://camo.githubusercontent.com/164df6e5a36d072b0196758c7e7631a9868285284d1e1f5e15f6c2dac1a59945/68747470733a2f2f706f7365722e707567782e6f72672f7068706d6574726963732f7068706d6574726963732f6c6963656e73652e737667)](https://packagist.org/packages/phpmetrics/phpmetrics)[![Latest Stable Version](https://camo.githubusercontent.com/d48916598fe669f89625d0d07dfff001087f3ea781dc1302c07e49d268716fec/68747470733a2f2f706f7365722e707567782e6f72672f7068706d6574726963732f7068706d6574726963732f762f737461626c652e737667)](https://packagist.org/packages/phpmetrics/phpmetrics)[![](https://camo.githubusercontent.com/d2432db86e1cfca636933728a664bf886cff501efab549a0af6abab26fe8851b/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d53706f6e736f72266d6573736167653d254532253944254134266c6f676f3d47697448756226636f6c6f723d253233666538653836)](https://github.com/sponsors/Halleck45)

[![Standard report](./doc/overview.png)](./doc/overview.png)

[![PhpMetrics](https://raw.githubusercontent.com/phpmetrics/PhpMetrics/master/doc/phpmetrics-logo.png)](https://raw.githubusercontent.com/phpmetrics/PhpMetrics/master/doc/phpmetrics-logo.png)

PhpMetrics provides metrics about PHP project and classes, with beautiful and readable HTML report.

[Documentation](https://phpmetrics.github.io/website/) | [Twitter](https://twitter.com/Halleck45) | [Contributing](https://github.com/phpmetrics/PhpMetrics/blob/master/doc/contributing.md)

Quick start
-----------

[](#quick-start)

Follow the [quick start guide](https://phpmetrics.github.io/website/getting-started/) to get started.

```
# install the package as a dev dependency
composer require phpmetrics/phpmetrics --dev

# run PHPMetrics to analyze a folder and generate a report
php ./vendor/bin/phpmetrics --report-html=myreport
```

Then open the generated `./myreport/index.html` file in your browser.

> You can use a [configuration file](https://phpmetrics.github.io/website/configuration/) to customize the report, add options, configure rules for Continuous Integration, etc.

Metrics
-------

[](#metrics)

You'll find detailed list of metrics in [documentation](https://phpmetrics.github.io/website/metrics/), or running `php ./vendor/bin/phpmetrics --metrics`

Author
------

[](#author)

- Jean-François Lépine &lt;[@Halleck45](https://twitter.com/Halleck45)&gt;

License
-------

[](#license)

See the [LICENSE](LICENSE) file.

Contributing
------------

[](#contributing)

See the [CONTRIBUTING](doc/contributing.md) file.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance57

Moderate activity, may be stable

Popularity49

Moderate usage in the ecosystem

Community42

Growing community involvement

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 65.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~69 days

Recently: every ~148 days

Total

63

Last Release

226d ago

Major Versions

v0.0.8 → v1.0.02014-09-01

v1.10.0 → v2.0.0-rc2016-08-20

v2.8.2 → v3.0.0rc12023-04-11

PHP version history (3 changes)v1.6.0PHP &gt;=5.4

v2.1.0PHP &gt;=5.5

v3.0.0rc1PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/ecd3f699bbfa9f96de09f237059302d7ff8e27b9d3af34e770827f481f9497ea?d=identicon)[Halleck](/maintainers/Halleck)

---

Top Contributors

[![Halleck45](https://avatars.githubusercontent.com/u/1076296?v=4)](https://github.com/Halleck45 "Halleck45 (388 commits)")[![UFOMelkor](https://avatars.githubusercontent.com/u/571106?v=4)](https://github.com/UFOMelkor "UFOMelkor (67 commits)")[![niconoe-](https://avatars.githubusercontent.com/u/9560327?v=4)](https://github.com/niconoe- "niconoe- (45 commits)")[![gmponos](https://avatars.githubusercontent.com/u/5675248?v=4)](https://github.com/gmponos "gmponos (25 commits)")[![skors](https://avatars.githubusercontent.com/u/2559733?v=4)](https://github.com/skors "skors (5 commits)")[![gemal](https://avatars.githubusercontent.com/u/69105?v=4)](https://github.com/gemal "gemal (4 commits)")[![ssfinney](https://avatars.githubusercontent.com/u/1596394?v=4)](https://github.com/ssfinney "ssfinney (4 commits)")[![FractalizeR](https://avatars.githubusercontent.com/u/318489?v=4)](https://github.com/FractalizeR "FractalizeR (4 commits)")[![shaunl](https://avatars.githubusercontent.com/u/2206964?v=4)](https://github.com/shaunl "shaunl (4 commits)")[![fabianbadoi](https://avatars.githubusercontent.com/u/771152?v=4)](https://github.com/fabianbadoi "fabianbadoi (4 commits)")[![janpieper](https://avatars.githubusercontent.com/u/426371?v=4)](https://github.com/janpieper "janpieper (3 commits)")[![fonsecas72](https://avatars.githubusercontent.com/u/1098293?v=4)](https://github.com/fonsecas72 "fonsecas72 (3 commits)")[![rexem](https://avatars.githubusercontent.com/u/8599264?v=4)](https://github.com/rexem "rexem (3 commits)")[![lencse](https://avatars.githubusercontent.com/u/191887?v=4)](https://github.com/lencse "lencse (3 commits)")[![underq](https://avatars.githubusercontent.com/u/1336062?v=4)](https://github.com/underq "underq (2 commits)")[![baptistedeleplace](https://avatars.githubusercontent.com/u/772901?v=4)](https://github.com/baptistedeleplace "baptistedeleplace (2 commits)")[![Big-Shark](https://avatars.githubusercontent.com/u/646054?v=4)](https://github.com/Big-Shark "Big-Shark (2 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (2 commits)")[![halfer](https://avatars.githubusercontent.com/u/480975?v=4)](https://github.com/halfer "halfer (2 commits)")[![Hywan](https://avatars.githubusercontent.com/u/946104?v=4)](https://github.com/Hywan "Hywan (2 commits)")

---

Tags

cimetricsphpqualitystatic-analyzertestingqualityqaanalysis

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/halleck45-php-metrics/health.svg)

```
[![Health](https://phpackages.com/badges/halleck45-php-metrics/health.svg)](https://phpackages.com/packages/halleck45-php-metrics)
```

###  Alternatives

[phpmetrics/phpmetrics

Static analyzer tool for PHP : Coupling, Cyclomatic complexity, Maintainability Index, Halstead's metrics... and more !

2.6k14.5M296](/packages/phpmetrics-phpmetrics)[phpunit/php-code-coverage

Library that provides collection, processing, and rendering functionality for PHP code coverage information.

8.9k892.4M1.5k](/packages/phpunit-php-code-coverage)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M1.9k](/packages/behat-behat)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

596161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
