lukzgois/laravelcs
最新稳定版本:v0.1.0
Composer 安装命令:
composer require lukzgois/laravelcs
包简介
PHP_CodeSniffer custom Sniff for Laravel coding standard
README 文档
README
This is a custom Sniff to detect violations and reformat PHP source code based on Laravel Coding Standard.
This is a fork from the Antonio Ribeiro's Project, which can be found here.
It checks the same thing to the Antonio's original project, in additional this sniffer allows inline control structures and check the functions have docblocks.
Your source code will be checked for PSR-1 & the Laravel "flavor" of PSR-2.
###Usage wih git
Clone this repository
git clone http://github.com/lukzgois/laravelcs LaravelCodeSniffer
Execute CodeSniffer
phpcs --standard=LaravelCodeSniffer/Standards/Laravel/ /path/to/your/project/files
###Usage with Composer
The recommended way is to install it globally with the following command:
composer global require lukzgois/laravelcs
Make sure you have ~/.composer/vendor/bin/ in your PATH.
You will then be able to run PHP Code Sniffer with the Laravel Standard:
phpcs --standard=$HOME/.composer/vendor/lukzgois/laravelcs/Standards/Laravel/ /path/to/your/project/files
###Contributing
There are probably still a lot to do here, so please, open issues and send pull requests.
统计信息
- 总下载量: 269
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-05-06