Skip to content

phmLabs/NamespaceAnalyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Namespace Analyzer

Build Status

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

Installation

Require with Composer

    {
        "require": {
            "phm/namespace-analyzer": "*"
        }
    }

Installation from Source

git clone https://github.com/phmLabs/NamespaceAnalyzer.git

Fetch Dependencies with Composer

$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update --dev

Creating the PHAR

(make sure your php.ini settings allows creating PHAR Archives

$ php bin/compile

from now on you can use the PHAR as follows php namespace-analyzer.phar analyze PATH/TO/CHECK

Example

Single File

$ php bin/console analyze example/unusednamespace.php

Directory

$ php bin/console analyze example

Tests

TODO

About

Namespace Analyzer - This tool will check if all used (T_USE) namespaces are needed in a given PHP file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages