mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 02:40:50 +00:00
Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
bin | ||
src | ||
tests/NodeVisitor/DependencyInjection | ||
.coveralls.yml | ||
.gitignore | ||
.travis.yml | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
easy-coding-standard.neon | ||
LICENSE | ||
phpstan.neon | ||
phpunit.xml | ||
README.md |
Rector - Reconstruct your Legacy Code to Modern Codebase
This tool will reconstruct (change) your code - run it only in a new clean git branch.
All Reconstructors
InjectAnnotationToConstructorNodeTraverser
(Nette)NamedServicesToConstructorNodeTraverser
(Symfony)
Install
composer require rector/rector --dev
Use
vendor/bin/rector reconstruct src
How to Contribute
Just follow 3 rules:
-
1 feature per pull-request
-
New feature needs tests. Coveralls.io checks code coverage under every PR.
-
Tests, coding standard and PHPStan checks must pass
composer all
Often you don't need to fix coding standard manually, just run:
composer fs
We would be happy to merge your feature then.