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

dev-main 2024-03-14 18:29 UTC

This package is not auto-updated.

Last update: 2024-11-07 17:00:45 UTC


README

A common coding standard for Courierist PHP code.

Source Code Download Package PHP Programming Language Read License Build Status

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.