Version 4, last updated by gsantini at May 04, 2010 08:11 UTC
How to install
You must have PEAR installed.
You shall remove PHP_CodeSniffer if you have a version bigger than 1.2.2 (the version installed here is NOT the standard 1.2.3).
Download the tgz file for PHP_CodeSniffer and SQLI_CodeSniffer here.
In the download folder, run the following commands lines (replace LastVersion with current one) :
> pear install PHP_CodeSniffer_1.2.3.tgz
> pear install SQLI_CodeSniffer_LastVersion.tgz
You should be done :
- you should have a new "sqlics" command
- if you have phpunit installed, going to YOUR_PEAR_FOLDER/tests/SQLI_CodeSniffer/tests and running
> phpunit AllTests.php
should cause no errors (some skipping is normal)