I tried to install some packages that need a 2.* version but the new laravel version uses 3.*
Is there any way to "downgrade" the package or do I have to wait until the packages are updated to the latest version?
I had the same issue, when I wanted to install sclable/php-latex. It needed symfony process higher than 2.7. Installed was version 3.x. I thought, everything should be fine, but it did not work.
You just have to modify your composer.json file and set the version higher than 2.
"symfony/process": "^2.7"
as here my composer.json file
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": [ "framework", "laravel" ],
"license": "MIT",
"type": "project",
"minimum-stability": "beta",
"prefer-stable": true,
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"barryvdh/laravel-debugbar": "^2.2",
"symfony/process": "^2.7",
"sclable/php-latex": "0.*",
"anahkiasen/former": "^4.0"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"symfony/css-selector": "2.8.*|3.0.*",
"symfony/dom-crawler": "2.8.*|3.0.*"
},
Then make an composer update:
composer update -verbose
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.