rectorphp/rector
Instant Upgrades and Automated Refactoring of any PHP 5.3+ code observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 6
- age_days: 3336
- days_rel: 15
- days_push: 7
- n_releases_24m: 76
Adoption not part of the score
10407 stars · 743 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Rector is a PHP CLI tool that performs instant upgrades and automated refactoring of PHP codebases using AST-based rules. It supports upgrades from PHP 5.3 to 8.5 and framework migrations for projects like Symfony, PHPUnit, and Doctrine.
Use cases
- upgrade php codebase to php 8
- automatically migrate symfony framework version
- refactor legacy php code automatically
- run automated code quality checks in ci
- upgrade phpunit tests to latest version
- modernize legacy php 5.3 application
When to choose
- you need to upgrade PHP or framework versions with minimal manual effort
- you want continuous automated refactoring in CI to maintain code quality
- you maintain a large legacy PHP codebase that needs modernization
When to avoid
- your project is not written in PHP
- you need one-off manual refactoring with full human control over every change
- your codebase is untyped procedural code with no OOP structure, where Rector works less effectively
Facets
cli-tool · maturity active
developer-tools build-tool code-review parser developer-tools programming-languages web-development php cli cross-platform php-ast automated-refactoring code-upgrades legacy-modernization static-analysis automation
3 sources
- readme: https://github.com/rectorphp/rector · fetched 2026-08-28 · 071c5087a3a2
- homepage: https://getrector.com · fetched 2026-08-29 · 1df83eeab931
- site_page: https://getrector.com/documentation · fetched 2026-08-29 · 7c2e12878352
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rectorphp/rector | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="rectorphp/rector")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem