PHPackages                             cauditor/analyzer - 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. cauditor/analyzer

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

cauditor/analyzer
=================

Generates &amp; submits the metrics for cauditor.org

1.2.8(10y ago)6510MITPHPPHP ^5.3|^7.0

Since Feb 25Pushed 10y ago1 watchersCompare

[ Source](https://github.com/matthiasmullie/php-analyzer)[ Packagist](https://packagist.org/packages/cauditor/analyzer)[ Docs](http://www.cauditor.org)[ RSS](/packages/cauditor-analyzer/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (7)Versions (15)Used By (0)

[cauditor](https://www.cauditor.org) PHP analyzer
=================================================

[](#cauditor-php-analyzer)

[![Build status](https://camo.githubusercontent.com/94aa536c40bb3db86ffd5ee0b7051e151305be01783fbec36fc948bb0265edcb/68747470733a2f2f6170692e7472617669732d63692e6f72672f6361756469746f722f7068702d616e616c797a65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cauditor/php-analyzer)[![Code coverage](https://camo.githubusercontent.com/9bef3f9ad4d6dc05059eb01cd99b6d26f80cccd8b921faaebc1dd8fdfe1ef899/687474703a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6361756469746f722f7068702d616e616c797a65722e737667)](https://codecov.io/github/cauditor/php-analyzer)[![Code quality](https://camo.githubusercontent.com/9aeb57e0140dbb70f820fcd2ef9c57647d87f462a62b0115189106cb4eda42cd/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6361756469746f722f7068702d616e616c797a65722e737667)](https://scrutinizer-ci.com/g/cauditor/php-analyzer)[![Latest version](https://camo.githubusercontent.com/976fccde9e499c9d06f41cb9470442463410592349594d6dc94526131918d080/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361756469746f722f616e616c797a65722e737667)](https://packagist.org/packages/cauditor/analyzer)[![Downloads total](https://camo.githubusercontent.com/c2dcad879194f46c90619135927a50f4399e9784c8d7639ec6949f753ec35c7b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361756469746f722f616e616c797a65722e737667)](https://packagist.org/packages/cauditor/analyzer)

[![Pretty stats](https://camo.githubusercontent.com/fb5420c2d1e68fbef803225614286290bf6731bf9bba3acaad492dee43497880/68747470733a2f2f7777772e6361756469746f722e6f72672f6173736574732f696d672f62616e6e65722e706e67)](https://camo.githubusercontent.com/fb5420c2d1e68fbef803225614286290bf6731bf9bba3acaad492dee43497880/68747470733a2f2f7777772e6361756469746f722e6f72672f6173736574732f696d672f62616e6e65722e706e67)

Setting it up is a ridiculously easy 2-step process:

Installation
------------

[](#installation)

### 1. Composer

[](#1-composer)

Simply add a dependency on cauditor/analyzer to your composer.json file if you use [Composer](https://getcomposer.org/) to manage the dependencies of your project:

```
composer require cauditor/analyzer --dev
```

This will make this library available in your CI server.

### 2. CI build

[](#2-ci-build)

Add this to your *.travis.yml*'s `after_success` statements:

**.travis.yml**

```
after_success:
  - vendor/bin/cauditor
```

It'll instruct Travis CI to generate the metrics &amp; submit them to [cauditor.org](https://www.cauditor.org).

This should also work on other CI providers, as long as you make sure `composer install --dev` is run so this client gets installed.

### 3. Look at those pretty metrics!

[](#3-look-at-those-pretty-metrics)

Point your browser to and look at the results!

Configuration
-------------

[](#configuration)

Add a *.cauditor.yml* file to the root of your project. Available configuration options (and their defaults) are:

**.cauditor.yml**

```
# path where metrics data will be exported to
build_path: build/cauditor
# folders to be excluded when analyzing code
exclude_folders: [tests, vendor]
```

*Note that, in addition to whatever is configured, folders 'vendors', '.git' &amp; '.svn' are always excluded.*

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~4 days

Total

14

Last Release

3721d ago

### Community

Maintainers

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

---

Top Contributors

[![matthiasmullie](https://avatars.githubusercontent.com/u/312776?v=4)](https://github.com/matthiasmullie "matthiasmullie (74 commits)")

---

Tags

phpanalyzercyclomatic-complexitymaintainability-indexcauditorhalstead intelligent contentinstabilityafferent couplingefferent coupling

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cauditor-analyzer/health.svg)

```
[![Health](https://phpackages.com/badges/cauditor-analyzer/health.svg)](https://phpackages.com/packages/cauditor-analyzer)
```

###  Alternatives

[phan/phan

A static analyzer for PHP

5.6k11.7M1.2k](/packages/phan-phan)[dave-liddament/sarb

Provides tools for baselining static analysis results and comparing against that baseline

1651.5M](/packages/dave-liddament-sarb)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[php-code-archeology/php-code-archeology

Static analyzer for PHP project archeology. Calculates various metrics for your codebase.

812.8k](/packages/php-code-archeology-php-code-archeology)[exakat/exakat

The smart static analyzer for PHP

437.8k](/packages/exakat-exakat)

PHPackages © 2026

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