A simple Git pre-commit hook running PHP_CodeSniffer
2020-07-14 in PHPGit hooks are scripts that are run every time a specific Git-related event happens, like a commit or a checkout. This article shows you how to use a simple hook to enforce a coding standard at every commit in a PHP project.