I'm happy to introduce the latest update to our book - Rector, the Power of Automated Refactoring, along with Rector version 0.19.5 from this week.
This release includes 2 new commands, brand new configuration with smart IDE autocomplete, brand new chapter and DX improvements to help you master code refactoring with ease.
We've released the Rector - The Power of Automated Refactoring book with goal of continuous upgrades. It's been a year since last upgrade, so it's time to step up and deliver fresh 2024 book release.
Key Highlights of this update are:
refactor()
use-cases, enhancing your refactoring skills.RectorConfig::configure()
config for smoother setup.use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withPaths([__DIR__ . '/app', __DIR__ . '/tests'])
->withImportNames(removeUnusedImports: true)
->withPreparedSets(codeQuality: true, codingStyle: true, instanceOf: true)
->withPhpSets();
setup-ci
and custom-rule
, to streamline your workflow.rectorphp/rector-book-code-examples
for comprehensive learning.Stmt
and Expr
in the "Creating Your First Rector Rule" chapter.This update empowers you to become a code refactoring expert with the latest 2024 Rector features.
It's available immediately for everyone who already owns the book.
If you haven't purchased the book yet, grab your copy now!
Happy coding!
Do you learn from my contents or use open-source packages like Rector every day?
Consider supporting it on GitHub Sponsors.
I'd really appreciate it!