PHPackages                             jose-bittacora/phpmetrics-mod - 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. jose-bittacora/phpmetrics-mod

ActiveLibrary[Testing &amp; Quality](/categories/testing)

jose-bittacora/phpmetrics-mod
=============================

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

01PHP

Since Aug 10Pushed 3y agoCompare

[ Source](https://github.com/jose-bittacora/PhpMetricsModificado)[ Packagist](https://packagist.org/packages/jose-bittacora/phpmetrics-mod)[ RSS](/packages/jose-bittacora-phpmetrics-mod/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PhpMetrics
==========

[](#phpmetrics)

[![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)[![Slack](https://camo.githubusercontent.com/3282339c8caf86f111ed74ffd67002d0f0df623d3b68a15144a4ab0ff7add990/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736c61636b2f7068706d6574726963732d79656c6c6f772e7376673f6c6f676f3d736c61636b)](https://join.slack.com/t/phpmetrics/shared_invite/enQtODU3MjQ4ODAxOTM5LWRhOGFhODMxN2JmMDRmOGVjNGQ0ZjNjNzVlNDIwNzQ2MWQ2YzgxYmRlNmM5NzIzZjlhYTFjZjZhYzAyMjM0YmE)

[![Standard report](https://camo.githubusercontent.com/e1e3a697cf948f269ed1865bf4a590e43289ebff5c7663a340b34f9c8b119b55/68747470733a2f2f7068706d6574726963732e6769746875622e696f2f776562736974652f6173736574732f707265766965772e706e67)](https://camo.githubusercontent.com/e1e3a697cf948f269ed1865bf4a590e43289ebff5c7663a340b34f9c8b119b55/68747470733a2f2f7068706d6574726963732e6769746875622e696f2f776562736974652f6173736574732f707265766965772e706e67)

[![PhpMetrics](https://camo.githubusercontent.com/7c967d0b53473041e0cf5ee3b2cc5470dd33653bc51ac61401b6fc080f5efd2d/68747470733a2f2f7068706d6574726963732e6f72672f696d616765736d6574726963732d6d61696e74656e6162696c6974792e706e67)](https://camo.githubusercontent.com/7c967d0b53473041e0cf5ee3b2cc5470dd33653bc51ac61401b6fc080f5efd2d/68747470733a2f2f7068706d6574726963732e6f72672f696d616765736d6574726963732d6d61696e74656e6162696c6974792e706e67)

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. composer require phpmetrics/phpmetrics --dev 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

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.2% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f789f3976d916e9fd8ddf2466ab6316e0fa4be45bb39f8500274235149a21f2?d=identicon)[jose-bittacora](/maintainers/jose-bittacora)

---

Top Contributors

[![Halleck45](https://avatars.githubusercontent.com/u/1076296?v=4)](https://github.com/Halleck45 "Halleck45 (367 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- (33 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)")[![FractalizeR](https://avatars.githubusercontent.com/u/318489?v=4)](https://github.com/FractalizeR "FractalizeR (4 commits)")[![fabianbadoi](https://avatars.githubusercontent.com/u/771152?v=4)](https://github.com/fabianbadoi "fabianbadoi (4 commits)")[![ssfinney](https://avatars.githubusercontent.com/u/1596394?v=4)](https://github.com/ssfinney "ssfinney (4 commits)")[![shaunl](https://avatars.githubusercontent.com/u/2206964?v=4)](https://github.com/shaunl "shaunl (4 commits)")[![janpieper](https://avatars.githubusercontent.com/u/426371?v=4)](https://github.com/janpieper "janpieper (3 commits)")[![lencse](https://avatars.githubusercontent.com/u/191887?v=4)](https://github.com/lencse "lencse (3 commits)")[![rexem](https://avatars.githubusercontent.com/u/8599264?v=4)](https://github.com/rexem "rexem (3 commits)")[![fonsecas72](https://avatars.githubusercontent.com/u/1098293?v=4)](https://github.com/fonsecas72 "fonsecas72 (3 commits)")[![alexdenvir](https://avatars.githubusercontent.com/u/1412074?v=4)](https://github.com/alexdenvir "alexdenvir (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)")[![jose-bittacora](https://avatars.githubusercontent.com/u/74922907?v=4)](https://github.com/jose-bittacora "jose-bittacora (2 commits)")

### Embed Badge

![Health badge](/badges/jose-bittacora-phpmetrics-mod/health.svg)

```
[![Health](https://phpackages.com/badges/jose-bittacora-phpmetrics-mod/health.svg)](https://phpackages.com/packages/jose-bittacora-phpmetrics-mod)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M360](/packages/dms-phpunit-arraysubset-asserts)

PHPackages © 2026

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