galsd / courierist-coding-standard
A common coding standard for Courierist code.
Installs: 71
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 3
Open Issues: 0
Type:phpcodesniffer-standard
Requires
- php: ^8.1
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- phpcsstandards/phpcsextra: ^1.0
- slevomat/coding-standard: ^8.8
- squizlabs/php_codesniffer: ^3.7
Requires (Dev)
- ext-dom: *
- captainhook/plugin-composer: ^5.3
- ergebnis/composer-normalize: ^2.30
- phpunit/phpunit: ^10.0
- ramsey/conventional-commits: ^1.3
- sebastian/diff: ^5.0
- spatie/phpunit-snapshot-assertions: ^5.0
This package is not auto-updated.
Last update: 2024-11-07 17:00:45 UTC
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.