An open API service indexing awesome lists of open source software.

https://github.com/devdrops/php-pre-commit

:octocat: Git pre-commit hook designed for PHP projects.
https://github.com/devdrops/php-pre-commit

git git-hook php

Last synced: 6 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# php-pre-commit

Git pre-commit hook file for PHP projects

![Shellcheck status](https://github.com/devdrops/php-pre-commit/actions/workflows/shellcheck.yaml/badge.svg?branch=main)

## 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.
2. Now copy the `config.dist` file to your Git hooks folder, and rename it to `config`.
3. Edit the `config` file with your preferences.

Kudos for [Johnathan Pulos](https://github.com/codemis) for [his amazing Gist](https://gist.github.com/codemis/8225337)!