fox91/coding-standard
Composer 安装命令:
composer require fox91/coding-standard
包简介
fox91 Coding Standard
关键字:
README 文档
README
Compatible with PHP 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 and 8.5.
Included tools
- PHP_CodeSniffer
dealerdirect/phpcodesniffer-composer-installer: PHP_CodeSniffer Standards Composer Installerslevomat/coding-standard: complements Consistence Coding Standard by providing sniffs with additional checksphpcompatibility/php-compatibility: checks for PHP cross-version compatibility
Installation
composer require --dev fox91/coding-standard
Create a file named .phpcs.xml.dist in the root of your project:
<?xml version="1.0" encoding="UTF-8"?> <ruleset> <!-- https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Annotated-Ruleset --> <!-- https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Advanced-Usage --> <arg name="extensions" value="php"/> <arg name="tab-width" value="4"/> <arg name="basepath" value="."/> <arg name="parallel" value="80"/> <arg name="report" value="full"/> <arg name="cache" value=".phpcs.cache"/> <arg value="s"/> <file>src</file> <file>tests</file> <config name="ignore_warnings_on_exit" value="1"/> <config name="ParanoiaMode" value="1"/> <!-- PHPCompatibility config --> <!-- <config name="testVersion" value="7.4"/> --> <rule ref="Fox91CodingStandard"/> </ruleset>
统计信息
- 总下载量: 5.73k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-30