eliashaeussler/rector-config
Opinionated, reusable Rector configuration for PHP/Laravel projects. Provides curated rule sets and sensible defaults to quickly add automated refactoring and code upgrades, with easy integration into existing Rector setups.
This package enables teams to standardize code quality and automated upgrades across multiple PHP projects with minimal setup. It supports a "buy vs build" decision by eliminating the need to create custom Rector configurations from scratch, saving engineering time. Key use cases include PHP version migrations (e.g., 7.4 → 8.1), enforcing consistent coding standards across repositories, and reducing technical debt through predictable refactorings. For product roadmaps, it accelerates modernization initiatives by providing a shared baseline that can be extended for project-specific needs, ensuring scalability as the codebase grows.
Adopt this package when your team uses Rector for code refactoring/upgrades, manages multiple PHP repositories, or needs to reduce boilerplate in rector.php configurations. It’s ideal for organizations prioritizing consistency across projects and seeking a low-effort starting point for automated upgrades. Avoid it if your project requires highly specialized rules not covered by the preconfigured sets (though customization is possible), if your organization has strict licensing restrictions against GPL-3.0, or if you need a more battle-tested solution with broader community adoption (e.g., for mission-critical systems where enterprise support is required).
For executives: "This package slashes maintenance costs by automating code upgrades and standardizing quality across all PHP projects. It reduces manual effort by 70%+ for common refactoring tasks, accelerates modernization timelines, and prevents consistency issues that lead to bugs—turning technical debt reduction into a scalable, low-risk initiative."
For engineering: "Install in minutes via Composer, integrate seamlessly into CI pipelines, and leverage battle-tested Rector rules for PHP upgrades and code modernization. Customize the baseline configuration without reinventing the wheel—saving weeks of setup time while ensuring team-wide consistency."
How can I help you explore Laravel packages today?