Skip to content

Repository files navigation

PHP Code Standards for robole

This packages helps to check and fix your php project files. It installs the required packages and provides config files with the needed settings for robole.

These packages are beeing used:

Supported PHP Versions

  • PHP 8.4+

Installation

composer require --dev robole/php-cs

Copy (or merge/overwrite if already existing) the following config files and directories to your project directory:

.editorconfig
.php-cs-fixer.dist.php
phpstan.dist.neon
rector.php
grumphp.yml
tests/phpstan

Copy the Taskfile.cs.yaml to your project.

Add these lines to your Taskfile.dist.yaml:

includes:
    cs: "./Taskfile.cs.yaml"

Add the task cs:setup to your main setup task in your Taskfile.dist.yaml.

Example:

tasks:
    setup:
        desc: "Setup project"
        cmds:
            -   task: setup-proxy
            -   task: setup-backend
            -   task: setup-entities
            -   task: setup-frontend
            -   task: setup-security
            -   task: cs:setup

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages