dev-master
9999999-devLibrary that defines a single PHP code style checking configuration.
proprietary
The Requires
by Ruben Knol
Library that defines a single PHP code style checking configuration.
This library provides a single policy on PHP code styles, as well as a utility to check your project/library against this code style policy without automatically fixing your code., (*1)
Make sure that in your composer.json you have the private packagist set up:, (*2)
{ [...] "repositories": [ { "type": "composer", "url": "http://packagist.mi24.tv/" } ], "config": { "secure-http": false }, [...] }
Now, install it as a development dependency:, (*3)
$ composer require --dev movingimage/style-checker
To check your current project's codebase after installing the library:, (*4)
$ ./vendor/bin/check_code_style.sh
Or you can install it as a pre-commit hook by creating a new file .git/hooks/pre-commit
with the following contents:, (*5)
#!/usr/bin/env bash ./vendor/bin/check_code_style.sh
Library that defines a single PHP code style checking configuration.
proprietary