Instant Upgrades with Rector
summary
Rector is a CLI tool (composer package) that automates mechanical PHP upgrades, claiming 80% of boring upgrades in one command by parsing and rewriting code with nikic/php-parser. It runs predefined rules to rename methods, change namespaces, add type hints, convert container get() calls into constructor injection, update PHPUnit annotations and YAML keys, and more. Community levels target Symfony, Laravel, Doctrine, CakePHP, etc.; the project now contains 120+ rules and handles complex multi-method merges proven in demos.
AI-written summary · about
chapters (5)
- 0:00Start
- 8:02What is Rector?
- 10:15How do Rules Look Like?
- 19:23The Most complex Rector?
- 20:32Thank you for your time! Questions?
related talks
14mInstant Upgrades with Rector
29mTomas Votruba — Let Rector do the Boring Work
52mAutomate Drupal 9 upgrades: Addressing deprecated code as a community
40mRefactoring Huge Legacy PHP Applications - From 100 hours to minutes
50mPHP 8.2 - Just upgrade and go?
01h 02mRewriting 12-Year-Old Code
40mAutomating PHP upgrades with Ansible
40mBullet-proof projects
