Skip to content
Git PHP Lint Syntax Checker pre-commit hook
Branch: master
Clone or download
Pull request Compare This branch is 3 commits ahead, 26 commits behind ReekenX:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Git PHP Lint Syntax Checker pre-commit hook

Author: Boris Guéry <>
Thansk to:Remigijus Jarmalavicius <remigijus(a)>
Thanks to:Vytautas Povilaitis <php-checker(a)>


GIT hook for PHP parse errors checking before commit.

If you looking same thing for Mercurial DCVS, check this out:

How to install

To install hook, copy pre-commit file to your project .git/hooks/pre-commit:

$ cp pre-commit .git/hooks/pre-commit; $ chmod +x .git/hooks/pre-commit;

Now, when you will make some modifications for code and will try to commit, GIT will stop you and tells where problem exist.


If you have found any bugs, please track them here:
You can’t perform that action at this time.