itmh/php-standard

This package is abandoned and no longer maintained. The author suggests using the itmh/coding-standard-php package instead.

ITMH coding standards

v1.0.1 2016-07-06 07:46 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:53:03 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