PHP code example of php-upgrade-preflight / cli
1. Go to this page and download the library: Download php-upgrade-preflight/cli library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
php-upgrade-preflight / cli example snippets
bash
mkdir php-upgrade-tools
cd php-upgrade-tools
composer bash
composer bash
php artisan upgrade:analyze \
--from-php=7.4 \
--target=laravel/framework:^9.0 \
--target-php=8.1 \
--format=markdown \
--output=/projects/reports/legacy-app.md
bash
docker compose build php
docker compose run --rm php composer install
docker compose run --rm php composer check