Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phmlabs/namespaceanalyzer
Namespace Analyzer - This tool will check if all used (T_USE) namespaces are needed in a given PHP file.
https://github.com/phmlabs/namespaceanalyzer
Last synced: 11 days ago
JSON representation
Namespace Analyzer - This tool will check if all used (T_USE) namespaces are needed in a given PHP file.
- Host: GitHub
- URL: https://github.com/phmlabs/namespaceanalyzer
- Owner: phmLabs
- Created: 2012-06-15T16:06:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-24T18:04:48.000Z (over 10 years ago)
- Last Synced: 2024-04-18T10:56:47.922Z (7 months ago)
- Language: PHP
- Homepage: http://www.phmlabs.com
- Size: 163 KB
- Stars: 9
- Watchers: 3
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Namespace Analyzer
==================[![Build Status](https://secure.travis-ci.org/phmLabs/NamespaceAnalyzer.png)](http://travis-ci.org/phmLabs/NamespaceAnalyzer)
This tool will check if all used (*T_USE*) namespaces are needed in a given PHP file.
Installation
------------Require with [`Composer`](http://getcomposer.org)
``` json
{
"require": {
"phm/namespace-analyzer": "*"
}
}
```Installation from Source
------------------------``` sh
git clone https://github.com/phmLabs/NamespaceAnalyzer.git
```**Fetch Dependencies with Composer**
``` sh
$ 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
``` sh
$ php bin/compile
```from now on you can use the PHAR as follows `php namespace-analyzer.phar analyze PATH/TO/CHECK`
Example
-------**Single File**
``` sh
$ php bin/console analyze example/unusednamespace.php
```**Directory**
``` sh
$ php bin/console analyze example
```Tests
-----TODO