net.christianto / codestyle-meta
Code style package presets for PHP
v0.0.2
2025-06-07 20:58 UTC
Requires
Suggests
- phpstan/extension-installer: Automatically loads PHPStan extensions
- phpstan/phpstan-doctrine: Adds PHPStan rules for Doctrine ORM support
- phpstan/phpstan-phpunit: Adds PHPStan rules for analyzing PHPUnit test code
- phpstan/phpstan-symfony: Adds PHPStan support for Symfony applications
- rector/jack: Rector internal rule set for cleaning up code (undocumented)
- rector/swiss-knife: A set of general-purpose Rector refactorings
- rector/type-perfect: Rector rules to improve and complete type declarations
- shipmonk/composer-dependency-analyser: Detects unused or missing composer dependencies
- symplify/phpstan-extensions: Custom PHPStan rules from Symplify
- symplify/phpstan-rules: Extra strict PHPStan rules for better code quality
- tomasvotruba/class-leak: Detects public classes that should be internal
- tomasvotruba/type-coverage: Reports how well your code is covered by types
- tomasvotruba/unused-public: Finds unused public methods and properties
This package is auto-updated.
Last update: 2025-06-07 13:59:31 UTC
README
Inspired from @VotrubaT
's
Tweet.
Installation
composer require net.christianto/codestyle --dev
Then add the following scripts to your composer.json
:
{
"scripts": {
"style:check": "vendor/bin/ecs check",
"style:fix": "vendor/bin/ecs fix",
"style:composer": "composer normalize"
}
}