Rector - The Power of Automated Refactoring

Rector - The Power of Automated Refactoring

About the Book

Rector is an extremely powerful tool that can instantly improve the code quality of your PHP projects. It can be used to safely migrate projects from PHP 5.6 to PHP 8. It can help you establish a standard of robust programming practices in your project. And it can save you a lot of time spent on reviewing pull requests.

In this book, seasoned developers Matthias Noback and Tomáš Votruba give you all the information you need to become a Rector power user. You'll learn:

  • How to make Rector part of your daily development workflow
  • How to create Rector rules that replace repetitive manual refactoring work
  • How to automate even more with Rector by adding it to your project's build process

Tomáš, being the founding father and core maintainer of the Rector project, will shine his light on:

  • What's the place of Rector in the larger ecosystem of PHP tools for code quality assurance?
  • What role will Rector fulfill in the future?

Matthias, who has a strong focus on automated testing, will cover:

  • The concepts behind Rector: tokenizing, parsing, and manipulating PHP AST nodes
  • Test-driven development techniques for creating automated refactorings

Learn from the experts! Sign up now and to thank you for showing your support, we'll send you a discount link on the release date.

About the Authors

Matthias Noback
Matthias Noback

Matthias Noback has been building web applications since 2003. He is the author of Principles of Package Design and Object Design Style Guide and Advanced Web Application Architecture. He is a regular blogger, public speaker and trainer.

Tomáš Votruba
Tomáš Votruba

Tomas loves to combine open-source and innovations... yet he's super lazy. Traumatized in childhood by doing repeated tasks as a punishment by his father (whom he loves), he's unable to do anything twice without deep physical pain. That's why he always spends dozens of hours to automate problems that would take and hour or two to do manually.

This extreme lazyness created the Rector ecosystem. A tool that automatically upgrades and refactores PHP, so you can have a coffee instead while your code is upgraded from PHP 5.3 to PHP 8.1.

Authors have earned$10,314,427writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub