norsys/php-coding-standard
Composer 安装命令:
composer require norsys/php-coding-standard
包简介
Coding standard to Norsys PHP projects
README 文档
README
Installation
composer require norsys/php-coding-standard:~1.0 --dev
Quick usage
Launch phpcs with Norsys PHP ruleset
bin/phpcs --standard=vendor/norsys/php-coding-standard/php
Check style specific to write tests
bin/phpcs --standard=vendor/norsys/php-coding-standard/php/test
Use with Symfony
bin/phpcs --standard=vendor/norsys/php-coding-standard/symfony bin/phpcs --standard=vendor/norsys/php-coding-standard/symfony/test
Advanced usage
Create your ruleset my-ruleset.xml
<!-- my-ruleset.xml --> <?xml version="1.0"?> <ruleset name="MyCustomCheckStyleStandard"> <description>My custom check style standard based on Norsys</description> <!-- Add Norsys rules --> <rule ref="vendor/norsys/php-coding-standard/php"/> <!-- Your custom rules --> ... </ruleset>
Launch phpcs with your ruleset
bin/phpcs --standard=my-ruleset.xml
Credits
Developped by Norsys
License
This project is licensed under the MIT license.
统计信息
- 总下载量: 1.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-06