Download the PHP package agentsquidflaps/pre-commit without Composer
On this page you can find all versions of the php package agentsquidflaps/pre-commit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download agentsquidflaps/pre-commit
More information about agentsquidflaps/pre-commit
Files in agentsquidflaps/pre-commit
Download agentsquidflaps/pre-commit
More information about agentsquidflaps/pre-commit
Files in agentsquidflaps/pre-commit
Vendor agentsquidflaps
Package pre-commit
Short Description Automate code standards on commit
License MIT
Package pre-commit
Short Description Automate code standards on commit
License MIT
Please rate this library. Is it a good library?
Informations about the package pre-commit
git pre-commit hook
Heavily inspired by smgladkovskiy/phpcs-git-pre-commit
About
Run php linting, code beautifier and code sniffer automatically to the PS2 standard. This differs from
smgladkovskiy/phpcs-git-pre-commit only in that
it runs phpcbf
in addition to phpcs
.
Install
composer require --dev "agentsquidflaps/pre-commit"
To enable code sniff, аdd to post-install-cmd
and post-update-cmd
in composer.json
installation script:
"scripts": {
"install-hooks": ["sh ./vendor/agentsquidflaps/pre-commit/src/setup.sh"],
"post-install-cmd": ["@install-hooks"],
"post-update-cmd": ["@install-hooks"]
}
Then run composer install
or composer update
. pre-commit
hook will be installed or updated.
All versions of pre-commit with dependencies
PHP Build Version
Package Version
Requires
squizlabs/php_codesniffer Version
^2.7 || ^3.0
The package agentsquidflaps/pre-commit contains the following files
Loading the files please wait ....