<p>I like to reuse knowledge and tools across projects, whether I'm working with Drupal, Symfony, Laravel or Sculpin.</p>
<p>Rector is one of those tools.</p>
<p><a href="/daily/2024/04/12/drupal-rector-and-the-project-update-bot">Yesterday</a> I said I use it to create automatic updates to my Drupal module code, but it can be used for other PHP projects, too.</p>
<p>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.</p>
<p>You define which rules or presets you want to use, run Rector on the code, and it will make those changes.</p>
<p>Having Rector do this work leaves me free to stay focused on other tasks.</p>
format:full_html
processed:|
<p>I like framework-agnostic tools.</p>
<p>I like to reuse knowledge and tools across projects, whether I'm working with Drupal, Symfony, Laravel or Sculpin.</p>
<p><a href="/daily/2024/04/12/drupal-rector-and-the-project-update-bot">Yesterday</a> I said I use it to create automatic updates to my Drupal module code, but it can be used for other PHP projects, too.</p>