contao/rector
Automate Contao CMS code upgrades with Rector rules and presets. contao/rector helps refactor PHP codebases to newer Contao and PHP versions, applying safe transformations to reduce manual migration work and keep projects consistent.
Adopt if:
Look elsewhere if:
For Executives/Business Leaders: "This package lets us modernize our Contao CMS codebase automatically—saving months of manual work and reducing risks from outdated PHP or deprecated Contao features. By integrating it into our development pipeline, we’ll catch issues early, cut maintenance costs, and future-proof our system for upgrades like PHP 8.x or headless Contao. It’s a low-risk investment with high ROI, especially if we’re already using tools like Rector or GitHub Actions."
For Engineering Teams:
*"contao/rector gives us Contao-specific Rector rules to automate tedious refactoring—think replacing tl_* database functions with Doctrine queries, updating namespaces, or enforcing PSR-12. It’s like a ‘find-and-replace on steroids’ for large codebases. We can:
For Developers: *"If you’ve ever dreaded upgrading Contao or PHP because of manual refactoring, this package automates the boring stuff. Example use cases:
foreach with &$value to typed properties.Widget classes with new ContentElement patterns.rector process. Want to see it in action? I’ll demo how it handles [specific pain point] in our codebase."*How can I help you explore Laravel packages today?