A PHP coding standard for better code readability, consistency, and adherence to best practices.
- 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.
Dive into our Code Style Guide for a detailed explanation of our coding practices.
- Add the dependency to your project:
composer require --dev slimapi/coding-standard
- Create a
phpcs.yml
file in the project root:<ruleset name="PHP_CodeSniffer"> <rule ref="./vendor/slimapi/coding-standard/src/ruleset.xml"/> <file>src</file> </ruleset>
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
This project is licensed under the terms specified in the LICENSE file.
We welcome contributions and suggestions! Please report any issues in the issue tracker.