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

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

graham-campbell/analyzer
========================

Checks if referenced classes really exist.

v5.1.0(2mo ago)29594.5k↓31.1%520MITPHPPHP ^8.1CI passing

Since Jul 28Pushed 2mo agoCompare

[ Source](https://github.com/GrahamCampbell/Analyzer)[ Packagist](https://packagist.org/packages/graham-campbell/analyzer)[ GitHub Sponsors](https://github.com/GrahamCampbell)[ Fund](https://tidelift.com/funding/github/packagist/graham-campbell/analyzer)[ RSS](/packages/graham-campbell-analyzer/feed)WikiDiscussions 5.1 Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (41)Used By (20)

Analyzer
========

[](#analyzer)

Analyzer was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and checks if referenced classes really exist. Feel free to check out the [change log](CHANGELOG.md), [releases](https://github.com/GrahamCampbell/Analyzer/releases), [security policy](https://github.com/GrahamCampbell/Analyzer/security/policy), [license](LICENSE), [code of conduct](.github/CODE_OF_CONDUCT.md), and [contribution guidelines](.github/CONTRIBUTING.md).

[![Banner](https://user-images.githubusercontent.com/2829600/71477090-0ea3e100-27e0-11ea-985c-6f0886f30fd9.png)](https://user-images.githubusercontent.com/2829600/71477090-0ea3e100-27e0-11ea-985c-6f0886f30fd9.png)

[![Build Status](https://camo.githubusercontent.com/e201d2f415e5f5d5e899fbe945e887b3c8ed4ca74a9d8634ff8a60447bf5662f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f47726168616d43616d7062656c6c2f416e616c797a65722f74657374732e796d6c3f6c6162656c3d5465737473267374796c653d666c61742d737175617265)](https://github.com/GrahamCampbell/Analyzer/actions?query=workflow%3ATests)[![StyleCI Status](https://camo.githubusercontent.com/b45f51668746240dafc952cd9b5a49471d3a749ae1eb533e2ec6000ce039694e/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f39383634333137332f736869656c64)](https://github.styleci.io/repos/98643173)[![Software License](https://camo.githubusercontent.com/c090e080484e2a2bc766446291d04437db823929042bf614b26a1643660ddf6f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e3f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Downloads](https://camo.githubusercontent.com/163269303a6251b1632c7e8c271cba5831340fc050563b39ee20ffcd04841823/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67726168616d2d63616d7062656c6c2f616e616c797a65723f7374796c653d666c61742d737175617265)](https://packagist.org/packages/graham-campbell/analyzer)[![Latest Version](https://camo.githubusercontent.com/a955a86d03b565a791a13fbe11405151cf6f3d692e9fa841c57817b330026bdc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f47726168616d43616d7062656c6c2f416e616c797a65723f7374796c653d666c61742d737175617265)](https://github.com/GrahamCampbell/Analyzer/releases)

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

[](#installation)

This version requires [PHP](https://www.php.net/) 8.1-8.5 and supports [PHPUnit](https://phpunit.de/) 10-13.

AnalyzerPHPUnit 7PHPUnit 8PHPUnit 9PHPUnit 10PHPUnit 11PHPUnit 12PHPUnit 133.1✅✅✅❌❌❌❌4.2❌❌✅✅❌❌❌5.1❌❌❌✅✅✅✅To get the latest version, simply require the project using [Composer](https://getcomposer.org/):

```
$ composer require "graham-campbell/analyzer:^5.1" --dev
```

Security
--------

[](#security)

If you discover a security vulnerability within this package, please send an email to . All security vulnerabilities will be promptly addressed. You may view our full security policy [here](https://github.com/GrahamCampbell/Analyzer/security/policy).

License
-------

[](#license)

Analyzer is licensed under [The MIT License (MIT)](LICENSE).

For Enterprise
--------------

[](#for-enterprise)

Available as part of the Tidelift Subscription

The maintainers of `graham-campbell/analyzer` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-graham-campbell-analyzer?utm_source=packagist-graham-campbell-analyzer&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)

###  Health Score

65

—

FairBetter than 99% of packages

Maintenance88

Actively maintained with recent releases

Popularity46

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 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 ~81 days

Recently: every ~108 days

Total

40

Last Release

60d ago

Major Versions

v2.4.2 → v3.0.12020-04-13

v2.4.3 → v3.0.22020-05-02

2.4.x-dev → v3.0.42020-10-07

3.1.x-dev → v4.0.02023-02-25

4.2.x-dev → v5.0.02025-02-09

PHP version history (7 changes)v1.0.0PHP ^7.0

v3.0.0PHP ^7.2.5

v2.4.3PHP ^7.0|^8.0

v3.0.2PHP ^7.2.5|^8.0

v3.0.3PHP ^7.2.5 || ^8.0

v3.1.0PHP ^7.4.15 || ^8.0.2

v5.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/d95eb26cb8f3919bb5ca3b6d823daeabbf259663778a970349b245c580713c8e?d=identicon)[graham-campbell](/maintainers/graham-campbell)

---

Top Contributors

[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (168 commits)")

---

Tags

hacktoberfesttestingGraham CampbellGrahamCampbellanalysisclassesanalyzer

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[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.8M2.0k](/packages/behat-behat)[phpmetrics/phpmetrics

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

2.6k14.5M299](/packages/phpmetrics-phpmetrics)[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)[ta-tikoma/phpunit-architecture-test

Methods for testing application architecture

10745.9M13](/packages/ta-tikoma-phpunit-architecture-test)[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)
