From 239c398dcb576016c169ed1ae98b7082ad145fbe Mon Sep 17 00:00:00 2001 From: Gunnstein Lye Date: Wed, 18 Mar 2015 14:57:46 +0100 Subject: [PATCH] Added Windows install instructions for PHP sniffer --- php/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/php/README.md b/php/README.md index 13a9a21..b4d789f 100644 --- a/php/README.md +++ b/php/README.md @@ -29,6 +29,22 @@ $ git clone https://github.com/ezsystems/ezcs.git $ ln -s path/to/ezcs/php/ezcs /usr/share/php/PHP/CodeSniffer/Standards/ezcs ``` +### Windows systems + +On Windows, this is one way to install: + +```bash +# Assuming PHP is installed in C:\php +# install pear: +# download http://pear.php.net/go-pear.phar and place it in C:\php +$ cd c:\php +$ .\php.exe go-pear.phar +# install php code sniffer +$ pear install PHP_CodeSniffer +# clone the ezcs repository (via Git GUI, Git Shell, PowerShell, etc) +# copy path\to\ezcs\php\ezcs to C:\php\pear\PHP\CodeSniffer\Standards +``` + ## Usage Use phpcs' `--standard` option to use it, example: