~/talk

Instant Upgrades with Rector

Talkat PHPConf.Asia 2018 · 2018-09-27..09-28· [php, developer-experience]
slides:none on file

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

  1. 0:00Start
  2. 8:02What is Rector?
  3. 10:15How do Rules Look Like?
  4. 19:23The Most complex Rector?
  5. 20:32Thank you for your time! Questions?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.