laravel-elixir-phpcs-shell
v2.0.1
Published
Run PHP Code Sniffer
Downloads
3
Readme
laravel-elixir-phpcs-shell
Description
A laravel-elixir plugin for PHP Code Sniffer [https://github.com/squizlabs/PHP_CodeSniffer] (https://github.com/squizlabs/PHP_CodeSniffer)
Linting for PHP code
Install
First, install PHP Code Sniffer
$ composer require "squizlabs/php_codesniffer=*"
Then in require the package
Elixir(function(mix) {
npm install 'laravel-elixir-phpcs-shell';
});
Usage: phpCS()
Call the plugin in gulpfile.js
with:
require('laravel-elixir-phpcs-shell');
mix.phpCS('tests/**/*.php', 'phpcs -p --standard=PSR2 tests');
TODOs
No TODOs
Changelog
- 2016-03-09 Initial release