
Instant Upgrades and Instant Refactorings for PHP Applications. Why do it manually? #rectorphp Created by @votrubaT
PHP Community
Joined December 2018
- Tweets2.7K
- Following3
- Followers4.4K
- Likes3.3K
Rector retweeted
Not bad improvement for the most used rule in @rectorphp 😍
Rector retweeted
Just released Rector-Laravel 2.7.0 with several fixes and new rules---thanks to all the contributors!
github.com/driftingly/rector…
Rector retweeted
Stuck on legacy in a minefield? We’ll upgrade it for you:
getrector.com/hire-team/
35 of 57 PHP & framework versions are end-of-life today. Zero security patches, ever.
PHP 8.2 has ~72 days left. 8.1 is already dead.
I made interactive page,
so you can check where your stack stands 👇
tomasvotruba.com/patch-or-pe…
Rector retweeted
Inspired by Mago/PHPStan and Rust/Go speed results, poking agents to find slow spots in @rectorphp
It's amazing how obvious improvements some checks are, once you see them, like this one:
Rector retweeted
PHPStan: 60 seconds
Mago (Rust): 3 seconds
I thought it was AI slop. Then I went down the rabbit hole... and ended up learning Go 😅
Is PHP becoming a "Rusty" language? 👇
tomasvotruba.com/blog/is-php…
Rector retweeted
If you think your PHP codebase is in a great shape,
I got another challenge (and truth) for you 😉
PHPStan level 8, Rector and ECS running at top levels... still found 900 mixed types...
Very dangerous to have these in codebase☢️
Rector retweeted
Are you into PHP? Fancy fresh/bold view on the ecosystem?
There you go - first part 😉
tomasvotruba.com/blog/is-php…
Rector retweeted
3 books sold just over weekend 😍
And they say technical books are dead!
(btw, this book it not about code)
leanpub.com/upgrade-every-da…
Rector retweeted
Now this is cool and generic PHPStan rule...
...whenever you pass union of object types, and return the same union (-/+ null), the type is most likely generics.
Now spotted in CI 😋
Rector retweeted
This applies for any online/IT/keyboard-based profession.
5 years ago I started to learn skill of electrician, plumber, builder, excavator, gardener and house reconstruction planner/manager.
Many fails, much knowledge and skills obtained.
Most of those are now better paid than devs and and in-shortage in my country.
Handyman who can fix your issue the month you call are gold.
Rector retweeted
I'm freezing my book "Upgrade Every Day" at 90 %.
~280 pages hand-written in 2024-2026.
But since spring 2026 agents changed how we upgrade code, and reading a tech book is now the slowest way to learn
Chapters are there to read
leanpub.com/upgrade-every-da…
Rector retweeted
It seems Rust is handling big projects really really well,
mid-size even better
ECS in PHP: 50 s
ECS in Go: 4 s
ECS in Rust: 0.8 s 😱
Rector retweeted
Why use Go/Rust tooling for PHP projects?
Apart speed, my favorite reason is freedom:
* It runs on any PHP 5-9 and will forever, no conflicts
* It runs on any set of dependencies, legacy, modern, latest framework, Zend 1, Symfony 1, Laravel 4... you name it - no conflicts, never!
Go compiles to own binar and does not need exact set of this or that PHP dependency. Anyone can install it, anywhere :)
Rector retweeted
surprisignly, daily job of master upgrader is not to upgrade a code. It's to increase confidence in the codebase, that is nearly zero at the start.
By building safety net with tests, static analysis, automated tooling, but also by teaching dev team in the team to make use of these tools. Work less, be more lazy and remember less.
This is the kaizen approach that yield best codebase shape. They're more fun to work with and maintain in time.
Rector retweeted
New @rectorphp 2.6.5 comes with smarter cache, as it should be intuitively 🤗
* configured rule value changes now invalidate the cache ✅
* --only <Rule> reuses the full-run cache ✅
* changing skips and removing rules does not wipe out cache ✅
github.com/rectorphp/rector/…
Rector retweeted
Automation is trending, agents are catching up.
A year ago, @rectorphp had a little downturn during summer, averagin ~100 k downlaod a day. This year it's different.
Growing instead and reaching 240 k 🥳🥳🥳
Continue finetuning Rector for flawless one-shot run
Rector retweeted
How is the Reco tool going? I'm adding couple new rules every other day and running across private projects.
79 rules and counting
Rector retweeted
2026 will be the last year we'll use Rector/PHPStan tooling as part of our private upgrade service.
Golang tooling is so much faster, tolerant to legacy codebases and more precise 🎉
If you're still on an old PHP, let us know. We'll help you grow 🚀
getrector.com/hire-team

















