The easiest way to get it working is to download a tagged phpsa.phar release, and put this on your path. For example:
wget https://github.com/ovr/phpsa/releases/download/0.6.2/phpsa.phar
chmod +x phpsa.phar
sudo mv phpsa.phar /usr/local/bin/phpsa
The recommended way to install phpsa is via Composer.
- If you do not have composer installed, download the
composer.pharexecutable or use the installer.
$ curl -sS https://getcomposer.org/installer | php- Run
php composer.phar require ovr/phpsaor add a new requirement in your composer.json.
{
"require": {
"ovr/phpsa": "*"
}
}- Run
php composer.phar update
git clone https://github.com/ovr/phpsa
cd phpsa
./bin/phpsaNext: Usage