This package is PSR-4 autoloadable via composer or otherwise mapping the West\CodingStandard
namespace to the West/
directory.
This package requires PHP 7.0 or later; dependencies of the package are documented in the composer.json file.
To run the unit tests and generate a coverage report with PHPUnit run
composer install
followed by composer test
at the command line.
First install the package with composer:
composer require --dev "west-php/coding-standard"
vendor/bin/phpcs --config-set installed_paths /path/to/your/app/vendor/west-php/coding-standard
Now phpcs
knows where to find these sniffs. Any existing value will be overwritten by this command.
Now the standard can used:
vendor/bin/phpcs --standard=West ./path/to/code