contao/contao-rector
Automate Contao upgrades with Rector. This package provides ready-made Rector rules and configuration to refactor Contao projects for newer versions, helping you modernize code, remove deprecations, and apply consistent changes safely across your codebase.
Adopt if:
Look elsewhere if:
*"This tool automates the painful, error-prone process of upgrading Contao codebases—saving our team weeks of manual work per major version. By adopting contao-rector, we’ll:
*"contao-rector integrates with our existing Rector setup to handle Contao-specific refactoring—think of it as automated, safe ‘find-and-replace’ for Contao’s evolving API. Key benefits:
tl_* → Database\Connection, hook changes).*"If you’ve ever dreaded a Contao upgrade because of ‘oh no, not another 500-line search-and-replace’, this is your new best friend. contao-rector does the heavy lifting:
Widget::generate() → Widget::compile()).composer.json:
"contao/contao-rector": "^1.0"
vendor/bin/rector process src --dry-run to preview changes.How can I help you explore Laravel packages today?