slimapi/coding-standard
Composer 安装命令:
composer require slimapi/coding-standard
包简介
SlimAPI Coding Standard
README 文档
README
A PHP coding standard for better code readability, consistency, and adherence to best practices.
✨ Features
- Modern Standards: Built on PER Coding Style 2.0 and Slevomat Coding Standard.
- Customizable Rules: Check the ruleset.xml for details on the applied standards.
- Full Sniff List: Explore the sniffs list for a comprehensive overview.
📘 Documentation
Dive into our Code Style Guide for a detailed explanation of our coding practices.
📦 Installation
- Add the dependency to your project:
composer require --dev slimapi/coding-standard
- Create a
phpcs.ymlfile in the project root:<ruleset name="PHP_CodeSniffer"> <rule ref="./vendor/slimapi/coding-standard/src/ruleset.xml"/> <file>src</file> </ruleset>
🛠️ Local Development & Testing
Clone the repo, then use the power of make to simplify your workflow:
make help # See all available commands make run # Start the app container make test # Run tests and code checkers
📜 License
This project is licensed under the terms specified in the LICENSE file.
🌟 Get Involved
We welcome contributions and suggestions! Please report any issues in the issue tracker.
统计信息
- 总下载量: 112
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-29