Rector - The Power of Automated Refactoring

In 2021 I wrote my first book about Rector with my favorite PHP hero and renowned writer – Matthias Noback. It's a practical book with step-by-step examples.

Dialog of Founder and First-Time User

The book was written by 2 people with different start position. By founder, who tells you how to get the best of tool, and by first time user, who ask for the basic yet important question to get full deep understanding.

Power Tool

This book will change the way you look at legacy code problems in your project. Do you need to change lot of files, get rid of patterns or unite framework usages from 3 to one? This book will teach you how to do it.

For Everyone

Do you think you need some special university education? No. Rector is designed to be super easy to use. You don't need deep knowledge of AST. The book will take you step by step from basics, through nodes and writing your first own rule.

Living Book

This book is something different then you're used to. As PHP and Rector will evolve, the book will get new releases too. Another part is how well is content explained. Have you read a book and found a place to improve? Let us know in special GitHub repository we created for your feedback. Your contributions will be included in next book release.