raptor/php-migration-helper

Helps to migrate your projects from PHP 7.1 to 7.3

v1.0.11-stable 2019-10-05 11:01 UTC

This package is auto-updated.

Last update: 2024-05-05 21:35:58 UTC


README

Build Status Code Coverage Codacy Badge Latest Stable Version License

(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

  1. Install package.

  2. Run command (VERSION_FROM is current PHP version, VERSION_TO is desired PHP version and REPORT_FILE is path to the file with compatibility record):

    php vendor/raptor/php-migration-helper/migration-report VERSION_FROM VERSION_TO REPORT_FILE
  3. If you do not want to process vendor folder, you can use --no-vendor option.

  4. 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.

  5. Fix mentions that are really problems

  6. Remove package.

Authors

  • Mikhail Kamorin aka raptor_MVK