imanghafoori / php-imports-analyzer
A command line tool to scan for extra or wrong use statements in composer based apps.
Installs: 74 783
Dependents: 19
Suggesters: 0
Security: 0
Stars: 21
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=7.1.3
- imanghafoori/composer-json: ^1.0.13
- imanghafoori/php-token-analyzer: ^0.1.61
- symfony/console: 4.*|5.*|6.*|7.*
- symfony/finder: 4.*|5.*|6.*|7.*|8.*|9.*
Requires (Dev)
- phpunit/phpunit: ^6.0|^7.0|^8.0|^9.0
- symfony/var-dumper: 3.*|4.*|5.*
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