# rectorphp/rector

> Automated refactoring and instant upgrades for PHP codebases

Navigation: [Developer Tools](category/developer-tools.txt) · [Index](../llms.txt)

## Facts

- GitHub: https://github.com/rectorphp/rector
- HTML: https://awesomeopensource.dev/project/rectorphp-rector
- Website: https://getrector.com
- License: MIT
- Language: PHP
- stars: 10507
- Topics: ast, automated-upgrades, instant-upgrades, php, rector, upgrade
- Activity score: 4.8/5 (Thriving)
- Last commit (any branch): 2026-11-13
- Last release: 2.8.4 2026-11-03

## Description

Rector rewrites PHP source automatically, either to upgrade a project between PHP versions from 5.3 to 8.5 or to apply refactoring rules that improve code quality. Rules run singly or as prepared sets, and framework-specific sets are maintained for Symfony, PHPUnit, Doctrine, TYPO3 and others. A configuration file in the project root selects the rules, and a dry run shows the resulting diff before anything is written.

## Maintenance activity

- Recency: 100% (weight 40%) — last commit: 0 days ago
- Commit volume: 100% (weight 25%)
- Releases: 98% (weight 25%) — last release: 10 days ago
- Bug fixes: 50% (weight 10%)
- Commits: 639 / 90d, 1554 / 365d

## Similar projects

- [stablyai/orca](stablyai-orca.md): Run several coding agents in parallel, each in its own Git worktree · Activity score 5.0/5 (Thriving)
- [tauri-apps/tauri](tauri-apps-tauri.md): Build small desktop and mobile apps with a web frontend and a Rust core · Activity score 5.0/5 (Thriving)
- [microsoft/terminal](microsoft-terminal.md): Tabs, panes and GPU rendering for PowerShell, cmd, WSL and SSH on Windows · Activity score 5.0/5 (Thriving)
- [ant-design/ant-design](ant-design-ant-design.md): A UI Design Language. · Activity score 5.0/5 (Thriving)
- [microsoft/playwright](microsoft-playwright.md): End-to-end testing and browser automation across Chromium, Firefox and WebKit · Activity score 5.0/5 (Thriving)
- [nvm-sh/nvm](nvm-sh-nvm.md): POSIX shell script for installing and switching between Node.js versions · Activity score 5.0/5 (Thriving)
