raptor / php-migration-helper
Helps to migrate your projects from PHP 7.1 to 7.3
Requires
- php: >=7.3
- composer/semver: ^1.5
- symfony/console: ^3.0|^4.0
- symfony/yaml: ^3.0|^4.0
Requires (Dev)
- escapestudios/symfony2-coding-standard: 3.9.*
- mockery/mockery: 1.2.*
- phpmd/phpmd: @stable
- phpunit/phpunit: 7.*
- raptor/test-utils: ^1.0
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: 3.4.*
This package is auto-updated.
Last update: 2025-04-08 22:58:22 UTC
README
(c) Mikhail Kamorin aka raptor_MVK
Overview
Helper contains command php-migration-helper
that checks your project for
changes in PHP 7.2 and 7.3 that break backward compatibility. The report is
provided as result of command execution.
Installation
The suggested installation method is via composer:
php composer.phar require --dev raptor/php-migration-helper:^1.0 --prefer-dist
Usage
-
Install package.
-
Run command (
VERSION_FROM
is current PHP version,VERSION_TO
is desired PHP version andREPORT_FILE
is path to the file with compatibility record):php vendor/raptor/php-migration-helper/migration-report VERSION_FROM VERSION_TO REPORT_FILE
-
If you do not want to process vendor folder, you can use
--no-vendor
option. -
View compatibility report. If it contains records from vendor path that need correction, please, make PR into this repository (fix
src/Resources/configs/configXX.yml
with appropriate version) with correct minimal version of the package under consideration. -
Fix mentions that are really problems
-
Remove package.
Authors
- Mikhail Kamorin aka raptor_MVK