Skip to content

Commit

Permalink
Merge pull request ezsystems#13 from glye/codesniffer_install_windows
Browse files Browse the repository at this point in the history
Added Windows install instructions for PHP sniffer
  • Loading branch information
glye committed Mar 23, 2015
2 parents b51965b + 239c398 commit a4db1aa
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions php/README.md
Expand Up @@ -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:
Expand Down

0 comments on commit a4db1aa

Please sign in to comment.