Skip to content

Files

Latest commit

6a2add4 · Oct 9, 2019

History

History
25 lines (20 loc) · 547 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 547 Bytes

MessageCloud Coding Standard

The PHP coding standard for MessageCloud.

Installation

  1. Require the package in your composer.json:
{
  "require-dev": {
    "messagecloud/messagecloud-coding-standard": "^3.0"
  }
}
  1. Create a PHP Code Sniffer configuration file phpcs.xml in the root of your project:
<?xml version="1.0"?>
<ruleset name="MessageCloud Coding Standard">
    <rule ref="./vendor/messagecloud/messagecloud-coding-standard/ruleset.xml"/>

    <!-- Path to check -->
    <file>./src</file>
</ruleset>