This is a list of commands or command sets to perform the given task with PHP's package manager.
composer clearcache
composer selfupdate
We will use Laravel as an example. Upgrade Composer first.
Step 1: Update your composer.json
file with the version numbers you want to upgrade to. For this example we will update "laravel/framework": "^8.0"
to "laravel/framework": "^9.0"
and update "nunomaduro/collision": "^5.1"
to "nunomaduro/collision": "^6.1"
.
Do a dry run:
composer update laravel/framework nunomaduro/collision --with-all-dependencies --dry-run
If there are problems, you will see an output which lists Laravel's dependencies which also need to be updated.