PHP plugin for https://github.com/jish/pre-commit
Installation
Install the plugin
$ gem install pre-commit-php
Enable as errors
Use the pre-commit command to enable the plugin
# In your git repo
$ pre-commit enable yaml checks php
This creates a config/pre_commit.yml
configuratiuon file which will
inform pre-commit
to use pre-commit-php
plugin for this project.
Enable as warnings
Use the pre-commit command to enable the plugin
# In your git repo
$ pre-commit enable yaml warnings php