Skip to content

HDNET/standard

Repository files navigation

HDNET Code Standard

HDNET code style and workflow standards for backend projects.

Tools

  • Rector
  • PHP CS Fixer
  • Captainhook
  • PHPStan

Installation

composer config repositories.repo-name vcs https://github.com/HDNET/standard
composer require hdnet/standard --dev

Configuration (tbd.)

Via root composer.json extra section. Here a full example of the configuration options.

    // ...
    "extra": {
        "standard": {
            "php-cs-fixer": [
                "riskyAllowed": false,
            ],
            "rector": [
                // tbd.
            ],
            "captainhook": [
                // tbd.
            ],
        }
    },
    // ...

TODO: