rectorphp/rector ? reverse-engineered prompt
Reverse engineered prompt
Build me a PHP tool that can automatically upgrade and refactor code across old and new projects.
I want it to scan a codebase, show me a dry run of the changes it would make, and then apply those changes when I’m ready. It should support running on a single folder or file set, let me turn on groups of upgrade and cleanup rules, and make it easy to add one rule at a time when I only want a specific change. The main goal is to help keep PHP code modern and consistent, and to make big version upgrades feel much less painful.
Please include a simple command line workflow, a config file in the project root, and clear docs for how to install it, run it, and create custom rules later. If you need to check current best practices for PHP parsing or AST based refactoring, look up the latest docs online.
Are you gonna build this?
make sure you review the code using coderabbit