Rector is not just for Drupal

I like framework-agnostic tools.

I like to reuse knowledge and tools across projects, whether I'm working with Drupal, Symfony, Laravel or Sculpin.

Rector is one of those tools.

Yesterday I said I use it to create automatic updates to my Drupal module code, but it can be used for other PHP projects, too.

If you're upgrading a PHP library and want to use promoted constructor properties, for example, Rector can do that for you - and a lot more.

You define which rules or presets you want to use, run Rector on the code, and it will make those changes.

Having Rector do this work leaves me free to stay focused on other tasks.

- Oliver

Was this interesting?

Sign up here and get more like this delivered straight to your inbox every day.

About me

Picture of Oliver

I'm an Acquia-certified Drupal Triple Expert with 17 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.