dev-master
9999999-dev http://www.phmlabs.comPhp Namespace Analyzer
MIT
The Requires
The Development Requires
by Contributors
by Nils Langner
package analyzer
Php Namespace Analyzer
This tool will check if all used (T_USE) namespaces are needed in a given PHP file., (*2)
Require with Composer
, (*3)
``` json { "require": { "phm/namespace-analyzer": "*" } }, (*4)
Installation from Source ------------------------ ``` sh git clone https://github.com/phmLabs/NamespaceAnalyzer.git
Fetch Dependencies with Composer, (*5)
``` sh $ curl -s http://getcomposer.org/installer | php $ php composer.phar update --dev, (*6)
Creating the PHAR ----------------- (make sure your *php.ini* settings allows creating PHAR Archives ``` sh $ php bin/compile
from now on you can use the PHAR as follows php namespace-analyzer.phar analyze PATH/TO/CHECK
, (*7)
Single File, (*8)
``` sh $ php bin/console analyze example/unusednamespace.php, (*9)
**Directory** ``` sh $ php bin/console analyze example
TODO, (*10)
Php Namespace Analyzer
MIT
package analyzer