i-MSCP coding standard

1.0.0 2019-03-14 09:26 UTC

This package is auto-updated.

Last update: 2024-05-29 04:21:53 UTC


Repository with all coding standard ruleset for i-MSCP repositories.


  1. Install the module via composer by running:

    $ composer require --dev imscp/imscp-coding-standard
  2. Add composer scripts into your composer.json:

    "scripts": {
      "cs-check": "phpcs",
      "cs-fix": "phpcbf"
  3. Create file phpcs.xml on base path of your repository with content:

    <?xml version="1.0"?>
    <ruleset name="i-MSCP Coding Standard">
        <rule ref="./vendor/imscp/imscp-coding-standard/ruleset.xml"/>
        <!-- Paths to check -->

You can add or exclude some locations in that file. For a reference please see:


  • To run checks only:

       $ composer cs-check
  • To automatically fix many CS issues:

       $ composer cs-fix