Smart Analyzer for PHP

(( gitHubWatchers )) (( gitHubStars )) (( gitHubForks ))

Smart Analyzer for PHP is a development tool aimed at bringing complex analysis for PHP applications and libraries.

This software is currently in early alpha state.

Installation

Install from a Composer package as a dev dependency (with Composer)

Make sure you have Composer installed.

Require it as a dev dependency:
composer require --dev ovr/phpsa
Run it:
php vendor/bin/phpsa

Install from a Git repository (with Git)

Make sure you have git and Composer installed.

Git clone the repository:
git clone git://github.com/ovr/phpsa.git
Change into the new directory:
cd phpsa
Install the project dependencies:
composer install
Run it:
bin/phpsa

Install from a PHP Archive (with curl or wget)

The PHPUnit documentation has a clear manual on how to install PHARs on Windows.

If you have the Suhosin extension enabled, make sure to allow the execution of PHARs in your php.ini:
suhosin.executor.include.whitelist = phar

Locally (X.X.X)

Download it:
wget -O phpsa.phar https://github.com/ovr/phpsa/releases/download/X.X.X/phpsa.phar
or
curl -sSL https://github.com/ovr/phpsa/releases/download/X.X.X/phpsa.phar -o phpsa.phar
Use it:
php phpsa.phar

Globally (X.X.X)

Download it:
wget -O phpsa.phar https://github.com/ovr/phpsa/releases/download/X.X.X/phpsa.phar
or
curl -sSL https://github.com/ovr/phpsa/releases/download/X.X.X/phpsa.phar -o phpsa.phar
Install it as an executable:
chmod a+x phpsa.phar
sudo mv phpsa.phar /usr/local/bin/phpsa
Use it:
phpsa