imanghafoori / php-imports-analyzer
A command line tool to scan for extra or wrong use statements in composer based apps.
Package info
github.com/imanghafoori1/php-imports-analyzer
pkg:composer/imanghafoori/php-imports-analyzer
v1.1.1
2026-10-04 22:19 UTC
Requires
- php: >=7.1.3
- imanghafoori/composer-json: ^2.0.0
- imanghafoori/php-token-analyzer: ^0.1.61
- symfony/console: >=4.0
- symfony/finder: >=4.0
Requires (Dev)
- phpunit/phpunit: >=6.0
- symfony/var-dumper: >=3.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A command line utility designed to scan your composer-based PHP applications and identify unnecessary or incorrect use statements. This tool is especially beneficial for examining your open-source packages, ensuring they adhere to optimal coding standards.
Install:
composer require imanghafoori/php-imports-analyzer --dev
Alternatively, you have the option to install it globally:
composer global require imanghafoori/php-imports-analyzer
Usage:
./vendor/bin/check_imports
Navigate to your project's root directory and run the following command:
check_imports