mercredi 18 avril 2018

composer require specific version

I need to use jenssegers/blade package in environments with php 5.6 so I need to use illuminate 5.1 (exactly this version). In vendors/jessengers/blade/composer.json it requires

"require": {
    "illuminate/view": "^5.1"
},

Executing composer update it downloads latest version of illuminate (5.6.17) that requires php 7+.

Laravel 5.1 works with php >= 5.5.9 and should be the same for illuminate 5.1.

I would like to force the download of illuminate 5.1 so I deleted vendors/lluminate directory and edited vendors/jessengers/blade/composer.json removing '^' before version:

"require": {
    "illuminate/view": "5.1"
}

But composer update keep downloading:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 6 installs, 0 updates, 0 removals
- Installing illuminate/contracts (v5.6.17): Loading from cache
- Installing illuminate/support (v5.6.17): Loading from cache
- Installing illuminate/filesystem (v5.6.17): Loading from cache
- Installing illuminate/container (v5.6.17): Loading from cache
- Installing illuminate/events (v5.6.17): Loading from cache
- Installing illuminate/view (v5.6.17): Loading from cache



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire