graham-campbell/analyzer
Analyzer is a PHP test utility by Graham Campbell that checks your code for references to classes that don’t actually exist. Compatible with PHP 8.1–8.5 and PHPUnit 10–13, helping catch broken imports and missing dependencies early.
Analyzer was created by, and is maintained by Graham Campbell, and checks if referenced classes really exist. Feel free to check out the change log, releases, security policy, license, code of conduct, and contribution guidelines.

This version requires PHP 8.1-8.5 and supports PHPUnit 10-13.
| Analyzer | PHPUnit 7 | PHPUnit 8 | PHPUnit 9 | PHPUnit 10 | PHPUnit 11 | PHPUnit 12 | PHPUnit 13 |
|---|---|---|---|---|---|---|---|
| 3.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: | :x: |
| 4.2 | :x: | :x: | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: |
| 5.1 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
To get the latest version, simply require the project using Composer:
$ composer require "graham-campbell/analyzer:^5.1" --dev
If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. You may view our full security policy here.
Analyzer is licensed under The MIT License (MIT).
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.
How can I help you explore Laravel packages today?