itmh / coding-standard-php
ITMH coding standards
v1.0.1
2016-07-06 07:46 UTC
Requires (Dev)
- phpmd/phpmd: ^2.4
- squizlabs/php_codesniffer: ^2.5
This package is not auto-updated.
Last update: 2024-12-11 21:14:09 UTC
README
Установка
#####Установить PHP_CodeSniffer:
composer global require squizlabs/php_codesniffer
#####Склонировать репозиторий:
git clone https://github.com/itmh/coding-standard-php.git $HOME/.coding-standard-php
#####Создать в папке со стандартами симлинк на склонированный репозиторий
ln -sv $HOME/.coding-standard-php/phpcs/ITMH $HOME/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards
Использование
$HOME/.composer/vendor/bin/phpcs --standard=ITMH /path/to/file.php
$HOME/.composer/vendor/bin/phpcs --standard=ITMH /path/to/directory