Find file History
Latest commit 2e51130 Jul 9, 2013 @s0enke Merge pull request #3 from jrgns/patch-1
Substituted HEAD with $against so that check will work on first commits.


PHP Codesniffer Pre-Commit Hook for GIT

Author: Soenke Ruempler <>


 * Bash
 * PHP CodeSniffer:


 * Check Coding style and forbid the commit if violations are found
 * Configuration file for Coding Standard, Path to PHPCS, Ignore List
 * Shows output in a 'less' pipe following the smart git principles


 * Put the script "pre-commit" into your .git/hooks directory 
 * OR: add the script to your pre-commit "chain" (you probably know what to do then)
 * Put the Config file "config" into the same dir as the "pre-commit" script and
   edit it to your requirements
 * Ensure that the script is executable.