/php-pre-commit

:octocat: Git pre-commit hook designed for PHP projects.

Primary LanguageShellMIT LicenseMIT

php-pre-commit

Git pre-commit hook file for PHP projects

Shellcheck status

How to Use?

  1. git clone this repository.
  2. Copy the pre-commit file to your project's Git hooks folder. Make sure that the pre-commit file is executable.
  3. Now copy the config.dist file to your Git hooks folder, and rename it to config.
  4. Edit the config file with your preferences.

Kudos for Johnathan Pulos for his amazing Gist!