docs - extract install for old PHP into docs folder

This commit is contained in:
Václav Makeš 2017-11-14 09:16:31 +01:00
parent 4929beff45
commit c4d8039f94
2 changed files with 17 additions and 17 deletions

View File

@ -23,6 +23,8 @@ Rector **upgrades your application** for you, with focus on open-source projects
composer require --dev rector/rector @dev nikic/php-parser 'dev-master#5900d78 as v3.1.1'
```
Do you have old PHP or dependencies in conflict? Ok, [it is not problem](/docs/HowUseWithOldPhp.md).
## How To Reconstruct your Code?
### A. Prepared Sets
@ -271,20 +273,3 @@ Just follow 3 rules:
```
We would be happy to merge your feature then.
### How to use on PHP < 7.1 on Incompatible Composer Dependencies
You must have an isolated environment with PHP 7.1 (for example in a Docker container). When you have it then run following command:
```
composer create-project rector/rector path-to-rector
```
You will be able to run all commands in the following manner:
```
path-to-rector/bin/rector process /var/www/old-project --config path-to-rector/src/config/level/symfony/symfony33.yml
# or for short
path-to-rector/bin/rector process /var/www/old-project --level symfony33
```

15
docs/HowUseWithOldPhp.md Normal file
View File

@ -0,0 +1,15 @@
### How to use on PHP < 7.1 on Incompatible Composer Dependencies
You must have an isolated environment with PHP 7.1 (for example in a Docker container). When you have it then run following command:
```
composer create-project rector/rector path-to-rector
```
You will be able to run all commands in the following manner:
```
path-to-rector/bin/rector process /var/www/old-project --config path-to-rector/src/config/level/symfony/symfony33.yml
# or for short
path-to-rector/bin/rector process /var/www/old-project --level symfony33
```