sllh/styleci-fixers), but no Laravel-specific hooks (e.g., service providers, facades, or Eloquent hooks).friendsofphp/php-cs-fixer) with custom .php-cs-fixer.dist.php for modern Laravel projects.php-cs-fixer directly? What specific StyleCI configurations are being migrated?laravel-pint (Laravel’s official formatter).shunk/php-cs-fixer-config).^2.18|^3.0).laravel-pint).// composer.json
"require-dev": {
"sllh/styleci-fixers": "^1.0",
"friendsofphp/php-cs-fixer": "^3.0"
}
php-cs-fixer + custom rules once StyleCI configs are migrated..php-cs-fixer.dist.php:
return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
// Custom rules from StyleCI...
]);
pint or php-cs-fixer in the same pipeline.UPGRADING.md.README.md about deprecation and migration paths.| Risk | Impact | Mitigation |
|---|---|---|
| Package breaks with PHP-CS-Fixer updates | CI pipeline failures | Pin PHP-CS-Fixer version in composer.json |
| StyleCI rules become obsolete | Outdated code style | Migrate to custom PHP-CS-Fixer rules |
| Security vulnerabilities | Supply chain risk | Remove post-migration |
| Laravel integration issues | None (no Laravel hooks) | Use as a standalone CLI tool |
php-cs-fixer --dry-run.// app/Console/Commands/FixStyle.php
use Sllh\StyleciFixers\StyleciFixers;
use PhpCsFixer\Runner\ParallelRunner;
public function handle() {
$fixer = new StyleciFixers();
$runner = new ParallelRunner();
$runner->run([getcwd()], $fixer->getRules());
}
How can I help you explore Laravel packages today?