2017 © Pedro Peláez
 

library namespace-analyzer

Php Namespace Analyzer

image

phm/namespace-analyzer

Php Namespace Analyzer

  • Saturday, May 24, 2014
  • by phmLabs
  • Repository
  • 2 Watchers
  • 9 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 5 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Namespace Analyzer

Build Status, (*1)

This tool will check if all used (T_USE) namespaces are needed in a given PHP file., (*2)

Installation

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)

Example

Single File, (*8)

``` sh $ php bin/console analyze example/unusednamespace.php, (*9)


**Directory** ``` sh $ php bin/console analyze example

Tests

TODO, (*10)

The Versions

24/05 2014

dev-master

9999999-dev http://www.phmlabs.com

Php Namespace Analyzer

  Sources   Download

MIT

The Requires

 

The Development Requires

package analyzer