rector/README.md

26 lines
904 B
Markdown
Raw Normal View History

# Prefixed Rector
2017-07-15 17:20:20 +00:00
[![Build Status Github Actions](https://img.shields.io/github/workflow/status/rectorphp/rector-prefixed/Code_Checks?style=flat-square)](https://github.com/rectorphp/rector-prefixed/actions)
[![Downloads](https://img.shields.io/packagist/dt/rector/rector.svg?style=flat-square)](https://packagist.org/packages/rector/rector-prefixed)
Do you have conflicts on Rector install? You're in the right place. Prefixed Rector can [be installed even on very old Symfony](https://getrector.org/blog/2020/01/20/how-to-install-rector-despite-composer-conflicts).
Do you have older PHP? Rector prefixed goes down to PHP 7.1, so you can install it even on older projects.
2017-07-15 17:20:20 +00:00
## Install
```bash
composer require rector/rector --dev
2017-07-15 17:20:20 +00:00
```
```bash
# generate "rector.php" config
vendor/bin/rector init
# dry run
vendor/bin/rector process src --dry-run
2019-11-08 16:49:03 +00:00
# changing run
vendor/bin/rector process src
```