# Don't work for PHPCS, make PHPCS work for you

Demo code used in my "Don't work for PHPCS, make PHPCS work for you" talk.

In this repo you'll find:
* Example code for a Travis setup to automatically run PHP Codesniffer against your repository.
* Information on how to set up logging.
* An XSL template for viewing a PHPCS log file in a web browser.
* A number of examples of what you can do with a custom ruleset as shown during the talk.

Recommended reading:
* [PHPCS wiki](https://github.com/squizlabs/PHP_CodeSniffer/wiki/)
* [PHPCS customizable properties list](https://gist.github.com/jrfnl/ff1555af507a03f3df00462b94d029ab)

# Don't work for PHPCS, make PHPCS work for you

Demo code used in my "Don't work for PHPCS, make PHPCS work for you" talk.

In this repo you'll find:
* Example code for a Travis setup to automatically run PHP Codesniffer against your repository.
* Information on how to set up logging.
* An XSL template for viewing a PHPCS log file in a web browser.
* A number of examples of what you can do with a custom ruleset as shown during the talk.

Recommended reading:
* [PHPCS wiki](https://github.com/squizlabs/PHP_CodeSniffer/wiki/)
* [PHPCS customizable properties list](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Customisable-Sniff-Properties)

Update link to the customizable properties list which has now been added to the PHPCS wiki.
Update link to the customizable properties list which has now been added to the PHPCS wiki.
