eufaturo / coding-standards
Coding standards for Eufaturo projects.
Installs: 519
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:composer-plugin
Requires
- php: ^8.3
- composer-plugin-api: ^2.1
- composer/composer: ^2.5
- driftingly/rector-laravel: ^2.0
- larastan/larastan: ^3.0
- phpstan/phpstan: ^2.0
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-mockery: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- rector/rector: ^2.0
- symplify/easy-coding-standard: ^12.0
This package is auto-updated.
Last update: 2025-03-18 22:11:44 UTC
README
This repository contains the coding standards followed by Eufaturo projects.
It includes configuration for:
- Easy Coding Standard (
ecs
) - PHPStan (
phpstan
) - Rector (
rector
)
Setup
First install the dependency through Composer by running:
composer require eufaturo/coding-standards --dev
Once the dependency is installed, run the following:
composer eufaturo:setup-coding-standards
Next open your composer.json
file and add the following section:
"scripts": { "ecs:fix": "./vendor/bin/ecs --fix", "ecs:check": "./vendor/bin/ecs", "phpstan:check": "./vendor/bin/phpstan analyse --ansi", "phpstan:generate-baseline": "./vendor/bin/phpstan --generate-baseline", "rector:fix": "./vendor/bin/rector process --ansi", "rector:check": "./vendor/bin/rector process --ansi --dry-run" },
Note: If you already have a
scripts
section on yourcomposer.json
file, just merge the new scripts with the existing ones.
Usage
To use it, you can run one of the scripts added to your composer.json
file:
composer ecs:fix composer ecs:check composer phpstan:check composer phpstan:generate-baseline composer rector:fix composer rector:check
License
This package is open-sourced software licensed under the MIT license.