appocular/coding-standard
Composer 安装命令:
composer require appocular/coding-standard
包简介
Appocular PHP coding standard, PHP Code Sniffer rules.
关键字:
README 文档
README
This is the PHP coding standard used by Appocular, based on PSR12 and Slevomat Coding Standard.
It incorporates PSR12 unmodified, and most of Slevomat, disabling Slevomat rules where they conflict with PSR12. Some other Slevomat rules have been disabled, see the changelog or the ruleset.xml for details.
Installation
composer require --dev appocular/coding-standard
Configuration
Example .phpcs.xml:
<?xml version="1.0"?> <ruleset> <file>./app</file> <file>./bootstrap</file> <file>./database</file> <file>./routes</file> <file>./tests</file> <rule ref="AppocularCodingStandard"/> <rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName"> <properties> <!-- Tell Slevomat the root directories of our namespaces, so it can check if the filepath is correct. --> <property name="rootNamespaces" type="array"> <element key="app" value="Appocular\Assessor"/> <element key="tests" value="Appocular\Assessor"/> </property> </properties> </rule> </ruleset>
统计信息
- 总下载量: 4.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-13