Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
Go to file
2017-07-19 18:52:54 +02:00
bin init 2017-07-15 19:01:21 +02:00
src [NamedServicesToContructor] split NodeVisitors to do particular job 2017-07-19 18:52:54 +02:00
tests/NodeVisitor/DependencyInjection [NamedServicesToContructor] split NodeVisitors to do particular job 2017-07-19 18:52:54 +02:00
.coveralls.yml init meta files 2017-07-15 19:12:04 +02:00
.gitignore init 2017-07-15 19:01:21 +02:00
.travis.yml [README] init 2017-07-15 19:20:20 +02:00
CODE_OF_CONDUCT.md init meta files 2017-07-15 19:12:04 +02:00
composer.json cleanup 2017-07-19 00:15:26 +02:00
easy-coding-standard.neon [NamedServicesToContructor] split NodeVisitors to do particular job 2017-07-19 18:52:54 +02:00
LICENSE init meta files 2017-07-15 19:12:04 +02:00
phpstan.neon use format preserving AST Transformation, disable PHPStan, doesn't work with php-parser 4.0-dev 2017-07-16 23:15:41 +02:00
phpunit.xml init 2017-07-15 19:01:21 +02:00
README.md [NodeTraverser] use it instead of Dispatcher and own solution 2017-07-18 23:59:43 +02:00

Rector - Reconstruct your Legacy Code to Modern Codebase

Build Status Coverage Status

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.