hosmelq/php-coding-standard
Hosmelq's PHP Coding Standard offers an opinionated, Laravel-friendly ruleset for PHP-CS-Fixer, helping teams enforce consistent code style with minimal configuration. Install it via Composer and run the fixer to format your projects automatically.
composer require --dev …). This is a code-transformation tool — it should never ship to production and should not appear in require.composer.json require / conflict block. The constraint block tells you which PHP, Laravel, and Pest versions you're actually allowed onto — that's what v1.1.0 changed.rector.php at the project root that imports the package's set list and points at source paths:return RectorConfig::configure()
->withPaths([__DIR__ . '/app', __DIR__ . '/tests'])
->withSets([/* the package's set list(s) */]);
vendor/bin/rector process --dry-run on a clean git branch. Read the diff before you let it write anything.app/Http/Controllers) and a single rule set. Do not turn on every set on day one; the diff will be unreviewable and you'll lose confidence in the tool.RECTOR_PEST switch is deliberately not on by default. Set it in CI or in a shell session only when you actually intend to run the Pest-conversion rules, and keep it out of the default developer config so day-to-day runs stay fast and low-noise.rector.php for app/ and a separate config for tests/ lets you apply aggressive rules to test code and conservative rules to domain code. Run them as two separate commands in CI.rector process --dry-run --no-progress-bar and fails on a non-empty diff keeps the codebase from drifting backwards. This is the highest-value integration: it turns the package from an occasional upgrade tool into a permanent invariant.pestphp/pest-plugin-rector is now optional. If your config or CI sets RECTOR_PEST=true, you must composer require --dev pestphp/pest-plugin-rector yourself — otherwise the Pest rules simply won't be available and you'll get a no-op or a missing-rule error rather than a helpful message.composer update — but don't assume the Pest rules survived the update; verify.--clear-cache before debugging anything else.tests/ heavily; isolating it means a red test suite is unambiguously attributable to the conversion.-vvv to see which rule produced each hunk, and --dry-run --output-format=json if you want to feed results into a dashboard or script.TestCase, your DTO/action patterns). Register them alongside the package's sets rather than forking the package.How can I help you explore Laravel packages today?