galsd/courierist-coding-standard
Composer 安装命令:
composer require galsd/courierist-coding-standard
包简介
A common coding standard for Courierist code.
README 文档
README
A common coding standard for Courierist PHP code.
About
It is a fork from ramsey/coding-standard. The fork is adopted and dedicated to Courierist Team.
This project adheres to a code of conduct. By participating in this project and its community, you are expected to uphold this code.
Installation
Install this package as a development dependency using Composer.
composer require --dev galsd/courierist-coding-standard dev-main
Usage
To use this coding standard, add <rule ref="Courierist"/> to your phpcs.xml
configuration.
Here are the contents of an example phpcs.xml.dist file that you may place in
the root of your repository:
<?xml version="1.0"?> <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"> <arg name="extensions" value="php"/> <arg name="colors"/> <arg value="sp"/> <file>./src</file> <file>./tests</file> <rule ref="Courierist"/> </ruleset>
Then, run PHP_CodeSniffer:
./vendor/bin/phpcs
Contributing
Contributions are welcome! To contribute, please familiarize yourself with CONTRIBUTING.md.
Copyright and License
The galsd/courierist-coding-standard library is copyright © Courierist Team and licensed for use under the terms of the MIT License (MIT). Please see LICENSE for more information.
统计信息
- 总下载量: 126
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-06