How to resolve composer requirements conflicts? - composer-php

I'm testing Laravel Framework new 5.1 version.
And I want to install famous barryvdh/laravel-ide-helper package.
A know that the problem is: barryvdh/laravel-ide-helper require illuminate/filesystem: 5.0.x and laravel/framework require illuminate/filesystem: 5.1.x.
How can configure my composer.json file?
Note: I have "minimum-stability": "dev" and "prefer-stable": true in my composer.json file.
On installing, I get this error:
Problem 1
- Conclusion: remove laravel/framework 5.1.x-dev
- barryvdh/laravel-ide-helper 2.0.x-dev requires illuminate/filesystem 5.0.x -> satisfiable by illuminate/filesystem[5.0.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.4].
- barryvdh/laravel-ide-helper v2.0.0 requires illuminate/filesystem 5.0.x -> satisfiable by illuminate/filesystem[5.0.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.4].
- barryvdh/laravel-ide-helper v2.0.1 requires illuminate/filesystem 5.0.x -> satisfiable by illuminate/filesystem[5.0.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.4].
- barryvdh/laravel-ide-helper v2.0.2 requires illuminate/filesystem 5.0.x -> satisfiable by illuminate/filesystem[5.0.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.4].
- barryvdh/laravel-ide-helper v2.0.3 requires illuminate/filesystem 5.0.x -> satisfiable by illuminate/filesystem[5.0.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.4].
- don't install illuminate/filesystem 5.0.x-dev|don't install laravel/framework 5.1.x-dev
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework 5.1.x-dev
- don't install illuminate/filesystem v5.0.22|don't install laravel/framework 5.1.x-dev
- don't install illuminate/filesystem v5.0.25|don't install laravel/framework 5.1.x-dev
- don't install illuminate/filesystem v5.0.26|don't install laravel/framework 5.1.x-dev
- don't install illuminate/filesystem v5.0.28|don't install laravel/framework 5.1.x-dev
- don't install illuminate/filesystem v5.0.4|don't install laravel/framework 5.1.x-dev
- Installation request for laravel/framework 5.1.* -> satisfiable by laravel/framework[5.1.x-dev].
- Installation request for barryvdh/laravel-ide-helper ^2.0#dev -> satisfiable by barryvdh/laravel-ide-helper[2.0.x-dev, v2.0.0, v2.0.1, v2.0.2, v2.0.3].
I have tried all below commands with the same results...
$ composer require barryvdh/laravel-ide-helper,
$ composer require barryvdh/laravel-ide-helper:#dev --dev
$ composer require barryvdh/laravel-ide-helper --dev --update-with-dependencies
I have tried also to create one alias on composer.json file:
"require": {
"laravel/framework": "5.1.*",
"illuminate/filesystem": "5.1.x-dev as 5.0.28"
},
And then have this error:
Problem 1
- Installation request for barryvdh/laravel-ide-helper dev-master -> satisfiable by barryvdh/laravel-ide-helper[dev-master].
- Conclusion: remove laravel/framework 5.1.x-dev
- Conclusion: don't install laravel/framework 5.1.x-dev
- barryvdh/laravel-ide-helper dev-master requires illuminate/filesystem 5.0.x -> satisfiable by illuminate/filesystem[5.0.x-dev, 5.0.28].
- don't install illuminate/filesystem 5.0.x-dev|don't install laravel/framework 5.1.x-dev
- don't install illuminate/filesystem 5.0.28|don't install laravel/framework 5.1.x-dev
- Installation request for laravel/framework 5.1.* -> satisfiable by laravel/framework[5.1.x-dev].
And this is my composer.json file:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"laravel/framework": "5.1.*",
"illuminate/filesystem": "5.1.x-dev as 5.0.28"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"Portal\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php -r \"copy('.env.example', '.env');\"",
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "dev",
"prefer-stable": true
}

The core problem stems from the overly-restrictive version constraint to 5.0.x. I don't know if there's a good reason for this or not.
One option would be to fork laravel-ide-helper into your own repo, change the version constraints to something like ^5.0 (and perhaps the package name), and add your forked repo as a git repository in your composer.json file. This would allow you to at least see if it works as expected.

The problem is, as you pointed out, that you have Laravel 5.1 installed (which btw is still unstable, I wouldn't recommend using it atm) and the package requires 5.0.*.
There are a few solutions:
Create an issue in the laravel ide helper repository, asking the author to ease the version constraint. Please be aware that this library is very closely related to the version, which probably is why the version constraint is so strict.
Don't install the unstable 5.1 version, but stick to 5.0 and use 5.1 when it's released and the package is updated.

I have solved with one alias in my composer.json file:
"require": {
"laravel/framework": "5.1.x-dev as 5.0.28"
},
So, laravel/framework have "illuminate/filesystem": "5.1.x-dev" and barryvdh/laravel-ide-helper thinks that have "illuminate/filesystem": "5.0.28"
My first approach:
"require": {
"laravel/framework": "5.1.*",
"illuminate/filesystem": "5.1.x-dev as 5.0.28"
},
it's not working because illuminate/filesystem it's used as subtree by laravel/framework and then i have to set the alias for laravel/framework instead of illuminate/filesystem.

Related

Updating Laravel to 7x failing due to dependencies, composer update -w doesn't work

I'm updating Laravel from 6.18 to 8. Normally I would simply change the version in composer.json and run composer update.
There are a bunch of additional changes for 6.x to 7 so I'm trying to do this first (as I use the auth scaffolding that changed in 7 but isn't mentioned in the documentation for 8.x upgrades).
I change composer.json accordingly (also dropping some outdated other stuff) and run composer update, but this fails (changing directly to 8 fails too). Using composer update -w doesn't work either.
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.2.2",
"ajthinking/tinx": "^2.1",
"barryvdh/laravel-debugbar": "^3.2",
"davejamesmiller/laravel-breadcrumbs": "^5.2",
"doctrine/dbal": "^2.10",
"dompdf/dompdf": "^0.8.5",
"facade/ignition": "^1.16",
"fico7489/laravel-pivot": "^3.0",
"fideloper/proxy": "^4.0",
"guzzlehttp/guzzle": "^6.5",
"guzzlehttp/psr7": "^1.6",
"jrean/laravel-user-verification": "^8.0",
"kriswallsmith/buzz": "^1.1",
"laravel/framework": "6.x",
"laravel/helpers": "^1.1",
"laravel/tinker": "^1.0",
"laravelcollective/html": "^6.0",
"maatwebsite/excel": "^3.1",
"mailgun/mailgun-php": "^3.0",
"nunomaduro/phpinsights": "^1.11",
"nyholm/psr7": "^1.2",
"php-http/guzzle6-adapter": "^2.0",
"php-http/message": "^1.8",
"predis/predis": "^1.1",
"simplesoftwareio/simple-qrcode": "~2"
},
"require-dev": {
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"files": [
"app/Http/helpers.php"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
to
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.2.2",
"barryvdh/laravel-debugbar": "^3.2",
"davejamesmiller/laravel-breadcrumbs": "^5.2",
"doctrine/dbal": "^2.10",
"dompdf/dompdf": "^0.8.5",
"facade/ignition": "^2.0",
"fico7489/laravel-pivot": "^3.0",
"fideloper/proxy": "^4.0",
"guzzlehttp/guzzle": "^6.5",
"guzzlehttp/psr7": "^1.6",
"kriswallsmith/buzz": "^1.1",
"laravel/framework": "7.x",
"laravel/helpers": "^1.1",
"laravel/tinker": "^2.0",
"laravelcollective/html": "^6.0",
"maatwebsite/excel": "^3.1",
"mailgun/mailgun-php": "^3.0",
"nunomaduro/phpinsights": "^1.11",
"nyholm/psr7": "^1.2",
"php-http/guzzle6-adapter": "^2.0",
"php-http/message": "^1.8",
"predis/predis": "^1.1",
"simplesoftwareio/simple-qrcode": "~2"
},
"require-dev": {
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"files": [
"app/Http/helpers.php"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
But this is failing (Laravel isn't updated)
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install one of phploc/phploc[5.0.0], symfony/console[v5.0.0-BETA1] | install one of symfony/console[v4.1.12, ..., v4.4.30] (conflict analysis result)
- Conclusion: don't install facade/ignition 2.10.0 (conflict analysis result)
- Conclusion: don't install symfony/console[v5.3.0-BETA1] | install one of symfony/console[v4.4.3, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.3 (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.4 (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.0-BETA1] | install one of symfony/console[v4.4.5, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[5.4.x-dev] | install one of symfony/console[v4.4.5, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[5.3.x-dev] | install one of symfony/console[v4.4.5, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[5.1.x-dev] | install one of symfony/console[v4.4.5, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[5.0.x-dev] | install one of symfony/console[v4.4.5, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.5 (conflict analysis result)
- Conclusion: don't install symfony/console[v5.3.0-BETA2] | install one of symfony/console[v4.4.6, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.2.0-BETA3] | install one of symfony/console[v4.4.6, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.2.0-BETA2] | install one of symfony/console[v4.4.6, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.2.0-BETA1] | install one of symfony/console[v4.4.6, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.1.0-BETA1] | install one of symfony/console[v4.4.6, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.0-BETA2] | install one of symfony/console[v4.4.6, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v4.4.6] | install one of laravel/framework[v7.30.2, v7.30.3], symfony/console[v5.0.0-RC1, ..., v5.3.0-RC1] (conflict analysis result)
- Conclusion: don't install laravel/framework v7.30.2 (conflict analysis result)
- Conclusion: don't install facade/ignition 2.10.1 (conflict analysis result)
- Conclusion: don't install symfony/console[v5.1.0-RC1] | install one of symfony/console[v4.4.7, ..., v4.4.15] (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.7 (conflict analysis result)
- Conclusion: don't install symfony/console[v5.3.0-BETA3] | install one of symfony/console[v4.4.8, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.3.0-BETA4] | install one of symfony/console[v4.4.8, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.0-RC1] | install one of symfony/console[v4.4.8, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v4.4.8] | install one of laravel/framework[v7.30.3], symfony/console[v5.0.0, ..., v5.3.0-RC1] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.2.0-RC2] | install one of symfony/console[v4.4.9, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.1.0-RC2] | install one of symfony/console[v4.4.9, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v4.4.10] | install one of laravel/framework[v7.30.3], symfony/console[v5.0.0, ..., v5.3.0-RC1] (conflict analysis result)
- Conclusion: don't install symfony/console[v4.4.9] | install one of laravel/framework[v7.30.3], symfony/console[v5.0.0, ..., v5.3.0-RC1] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.2] | install one of symfony/console[v4.4.11, ..., v4.4.29] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.2.0-RC1] | install one of symfony/console[v4.4.11, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.3] | install one of symfony/console[v4.4.11, ..., v4.4.29] (conflict analysis result)
- Conclusion: don't install symfony/console[v4.4.11] | install one of laravel/framework[v7.30.3], symfony/console[v5.0.0, ..., v5.3.0-RC1] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.0] | install one of symfony/console[v4.4.12, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.1] | install one of symfony/console[v4.4.12, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.3.0-RC1] | install one of symfony/console[v4.4.12, ..., v4.4.17] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.4] | install one of symfony/console[v4.4.12, ..., v4.4.16] (conflict analysis result)
- Conclusion: don't install symfony/console[v4.4.13] | install one of laravel/framework[v7.30.3], symfony/console[v5.0.5, ..., v5.1.0] (conflict analysis result)
- Conclusion: don't install symfony/console[v4.4.12] | install one of laravel/framework[v7.30.3], symfony/console[v5.0.5, ..., v5.1.0] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.6] | install one of symfony/console[v4.4.14, ..., v4.4.30] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.7] | install one of symfony/console[v4.4.14, ..., v4.4.30] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.8] | install one of symfony/console[v4.4.14, ..., v4.4.30] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.5] | install one of symfony/console[v4.4.14, v4.4.15, v4.4.16] (conflict analysis result)
- Conclusion: don't install symfony/console[v4.4.14] | install one of laravel/framework[v7.30.3], symfony/console[v5.0.9, v5.0.10, v5.0.11, v5.1.0] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.9] | install one of symfony/console[v4.4.15, v4.4.16] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.10] | install one of symfony/console[v4.4.15, v4.4.16] (conflict analysis result)
- Conclusion: don't install symfony/console[v4.4.15] | install one of laravel/framework[v7.30.3], symfony/console[v5.0.11] (conflict analysis result)
- Conclusion: don't install laravel/framework v7.30.3 (conflict analysis result)
- Conclusion: don't install facade/ignition 2.10.2 (conflict analysis result)
- Conclusion: don't install facade/ignition 2.11.0 (conflict analysis result)
- Conclusion: don't install symfony/console[v5.0.11] | install symfony/console[v4.4.16] (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.16 (conflict analysis result)
- Conclusion: don't install facade/ignition 2.11.1 (conflict analysis result)
- Conclusion: don't install facade/ignition 2.11.2 (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.17 (conflict analysis result)
- Conclusion: don't install symfony/console v5.1.0 (conflict analysis result)
- Conclusion: don't install symfony/console[v5.1.2] | install one of symfony/console[v4.4.18, ..., v4.4.29] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.1.3] | install one of symfony/console[v4.4.18, ..., v4.4.30] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.1.1] | install one of symfony/console[v4.4.18, ..., v4.4.29] (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.18 (conflict analysis result)
- Conclusion: don't install symfony/console v5.1.4 (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.19 (conflict analysis result)
- Conclusion: don't install symfony/console v5.1.5 (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.20 (conflict analysis result)
- Conclusion: don't install symfony/console v5.1.6 (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.21 (conflict analysis result)
- Conclusion: don't install symfony/console v5.1.7 (conflict analysis result)
- Conclusion: don't install symfony/console[v5.1.10] | install one of symfony/console[v4.4.22, ..., v4.4.30] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.1.11] | install one of symfony/console[v4.4.22, ..., v4.4.30] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.1.9] | install one of symfony/console[v4.4.22, ..., v4.4.29] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.1.8] | install one of symfony/console[v4.4.22, ..., v4.4.29] (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.22 (conflict analysis result)
- Conclusion: don't install symfony/console v5.2.0 (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.23 (conflict analysis result)
- Conclusion: don't install symfony/console v5.2.1 (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.24 (conflict analysis result)
- Conclusion: don't install symfony/console v5.2.2 (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.25 (conflict analysis result)
- Conclusion: don't install symfony/console v5.2.3 (conflict analysis result)
- Conclusion: don't install symfony/console[v5.2.6] | install one of symfony/console[v4.4.26, v4.4.27, v4.4.29, v4.4.30] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.2.7] | install one of symfony/console[v4.4.26, v4.4.27, v4.4.29, v4.4.30] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.2.5] | install one of symfony/console[v4.4.26, v4.4.27, v4.4.29] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.2.4] | install one of symfony/console[v4.4.26, v4.4.27, v4.4.29] (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.26 (conflict analysis result)
- Conclusion: don't install symfony/console v5.2.8 (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.27 (conflict analysis result)
- Conclusion: don't install symfony/console v5.2.10 (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.29 (conflict analysis result)
- Conclusion: don't install symfony/console v5.2.11 (conflict analysis result)
- Conclusion: don't install facade/ignition 2.11.3 (conflict analysis result)
- Conclusion: don't install symfony/console v5.2.12 (conflict analysis result)
- Conclusion: don't install facade/ignition 2.11.4 (conflict analysis result)
- Conclusion: don't install symfony/console v5.2.14 (conflict analysis result)
- Conclusion: don't install symfony/console v5.3.0 (conflict analysis result)
- Conclusion: don't install symfony/console[v5.3.4] | install symfony/console[v4.4.30] (conflict analysis result)
- Conclusion: don't install symfony/console[v5.3.2] | install symfony/console[v4.4.30] (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.30 (conflict analysis result)
- Conclusion: don't install facade/ignition 2.12.0 (conflict analysis result)
- Conclusion: don't install symfony/console v5.3.6 (conflict analysis result)
- Conclusion: don't install one of phploc/phploc[5.0.0], symfony/console[v5.3.7] (conflict analysis result)
- Conclusion: don't install sebastian/version[2.0.1] | install phploc/phploc[5.0.0] (conflict analysis result)
- Conclusion: install sebastian/version 2.0.1 (conflict analysis result)
- Conclusion: don't install one of phploc/phploc[5.0.0], symfony/console[v5.2.4] | install one of symfony/console[v4.4.18, ..., v4.4.30] (conflict analysis result)
- Conclusion: don't install symfony/console v4.4.2 (conflict analysis result)
- Conclusion: don't install one of phploc/phploc[5.0.0], symfony/console[v5.2.5] | install one of symfony/console[v4.4.18, ..., v4.4.30] (conflict analysis result)
- Conclusion: don't install one of phploc/phploc[5.0.0], symfony/console[v5.1.0-BETA1] | install one of symfony/console[v4.2.0, ..., v4.4.30] (conflict analysis result)
- Conclusion: don't install one of phploc/phploc[5.0.0], symfony/console[v5.0.0-BETA2] | install one of symfony/console[v4.1.12, ..., v4.4.30] (conflict analysis result)
- Root composer.json requires laravel/framework 7.x -> satisfiable by laravel/framework[v7.0.0, ..., 7.x-dev].
- Root composer.json requires phpunit/phpunit ^8.5 -> satisfiable by phpunit/phpunit[8.5.0, ..., 8.5.x-dev].
- Root composer.json requires nunomaduro/phpinsights ^1.11 -> satisfiable by nunomaduro/phpinsights[v1.11.0, ..., v1.x-dev].
- facade/ignition[2.0.0, ..., 2.9.1] require symfony/console ^5.0 -> satisfiable by symfony/console[v5.0.0-BETA1, ..., 5.4.x-dev].
- Conclusion: don't install symfony/console[5.2.x-dev] | install one of symfony/console[v4.4.2, ..., v4.4.17] (conflict analysis result)
- Root composer.json requires facade/ignition ^2.0 -> satisfiable by facade/ignition[2.0.0, ..., 2.12.0].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
I have trouble reading what the problem exactly is and have no idea how to solve this (especially since I'm following the steps as laid out by the Laravel update documentation).
I've read about some similar-ish update problems because of different required package versions of symphony/console required by phploc and the require-dev packages? I don't know, nor even how to solve that if it was the case.
Update:
Trying to solve the problem with phploc/phploc, i tried composer update phploc/phploc "6.0.0" -w.
This gives the following error:
Loading composer repositories with package information
Package "6.0.0" listed for update is not locked.
Dependency "laravel/framework" is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Dependency "phpunit/phpunit" is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires facade/ignition ^2.0, found facade/ignition[2.0.0, ..., 2.12.0] but the package is fixed to 1.18.0 (lock file version) by a partial update and that version does not
match. Make sure you list it as an argument for the update command.
Problem 2
- Root composer.json requires laravel/framework 7.x, found laravel/framework[v7.0.0, ..., 7.x-dev] but the package is fixed to v6.20.33 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Problem 3
- Root composer.json requires laravel/tinker ^2.0, found laravel/tinker[v2.0.0, ..., 2.x-dev] but the package is fixed to v1.0.10 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Problem 4
- laravel/ui[v2.0.0, ..., 2.x-dev] require illuminate/console ^7.0 -> found illuminate/console[v7.0.0, ..., 7.x-dev] but these were not loaded, likely because it conflicts with another require.
- laravel/ui[v2.2.0, ..., v2.3.0] require illuminate/console ^7.0|^8.0 -> found illuminate/console[v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires laravel/ui ^2.0 -> satisfiable by laravel/ui[v2.0.0, ..., 2.x-dev].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Tried composer require phploc/phploc, and update, both with and without -w
All result pretty much in the following:
Problem 1
- nunomaduro/phpinsights is locked to version v1.13.0 and an update of this package was not requested.
- nunomaduro/phpinsights v1.13.0 requires phploc/phploc ^5.0 -> found phploc/phploc[5.0.0] but it conflicts with your root composer.json require (^7.0).
Problem 2
- phploc/phploc 7.0.x-dev is an alias of phploc/phploc dev-master and thus requires it to be installed too.
- phploc/phploc[dev-master, 7.0.0, ..., 7.0.2] require sebastian/version ^3.0 -> satisfiable by sebastian/version[3.0.0, 3.0.1, 3.0.2].
- You can only install one version of a package, so only one of these can be installed: sebastian/version[2.0.1, 3.0.0, 3.0.1, 3.0.2].
- phpunit/phpunit 7.5.20 requires sebastian/version ^2.0.1 -> satisfiable by sebastian/version[2.0.1].
- phpunit/phpunit is locked to version 7.5.20 and an update of this package was not requested.
- Root composer.json requires phploc/phploc ^7.0 -> satisfiable by phploc/phploc[7.0.0, 7.0.1, 7.0.2, 7.0.x-dev (alias of dev-master)].
phploc/phploc is required in v5, which requires symfony/console in v4. Laravel v7 requires Symfony v5.
Solution: update phploc/phploc to at least v6. As this is not listed in your composer.json, maybe as part of "removing outdated stuff": did you use it before? How did you remove it? By simply removing it from your composer.json without using composer remove phploc/phploc?
It could help to rollback all changes in your composer.json, remove what you want to remove package by package and call composer update $packagename after each single removal

composer Install/Update for laravel project return dependency error when i want to generate lock file

I'm trying to regenerate my composer.lock file with composer.phar install, but I'm running into this error:
Problem 1
- Conclusion: don't install laravel/framework v5.4.1 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.2 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.3 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.4 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.5 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.6 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.7 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.8 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.9 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.10 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.11 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.12 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.13 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.14 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.15 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.16 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.17 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.18 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.19 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.20 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.21 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.22 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.23 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.24 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.25 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.26 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.27 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.28 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.29 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.30 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.31 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.32 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.33 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.34 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.35 (conflict analysis result)
- Conclusion: don't install laravel/framework v5.4.36 (conflict analysis result)
- barryvdh/laravel-debugbar[v3.4.0, ..., v3.4.2] require maximebf/debugbar ^1.16.3 -> satisfiable by maximebf/debugbar[v1.16.3, v1.16.4].
- barryvdh/laravel-debugbar[v3.5.0, ..., v3.5.1] require php >=7.2 -> your php version (7.0; overridden via config.platform, actual: 7.2.34) does not satisfy that requirement.
- maximebf/debugbar v1.16.3 requires php ^7.1 -> your php version (7.0; overridden via config.platform, actual: 7.2.34) does not satisfy that requirement.
- maximebf/debugbar v1.16.4 requires php ^7.1|^8 -> your php version (7.0; overridden via config.platform, actual: 7.2.34) does not satisfy that requirement.
- illuminate/support[v5.6.0, ..., v5.8.36] require php ^7.1.3 -> your php version (7.0; overridden via config.platform, actual: 7.2.34) does not satisfy that requirement.
- illuminate/support[v6.0.0, ..., v6.19.1] require php ^7.2 -> your php version (7.0; overridden via config.platform, actual: 7.2.34) does not satisfy that requirement.
- illuminate/support[v6.20.0, ..., v6.20.7, v7.29.0, ..., v7.30.0] require php ^7.2.5|^8.0 -> your php version (7.0; overridden via config.platform, actual: 7.2.34) does not satisfy that requirement.
- illuminate/support[v7.0.0, ..., v7.28.4] require php ^7.2.5 -> your php version (7.0; overridden via config.platform, actual: 7.2.34) does not satisfy that requirement.
- barryvdh/laravel-debugbar[v3.2.9, ..., v3.3.3] require illuminate/support ^5.5|^6|^7 -> satisfiable by illuminate/support[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.7, v7.0.0, ..., v7.30.0].
- barryvdh/laravel-debugbar[v3.2.6, ..., v3.2.8] require illuminate/support ^5.5|^6 -> satisfiable by illuminate/support[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.7].
- barryvdh/laravel-debugbar[v3.2.3, ..., v3.2.5] require illuminate/support 5.5.x|5.6.x|5.7.x|5.8.x -> satisfiable by illuminate/support[v5.5.0, ..., v5.8.36].
- barryvdh/laravel-debugbar[v3.2.0, ..., v3.2.2] require illuminate/support 5.5.x|5.6.x|5.7.x -> satisfiable by illuminate/support[v5.5.0, ..., v5.7.28].
- Only one of these can be installed: illuminate/support[v5.2.43, ..., v5.6.7], laravel/framework[v5.4.0, ..., v5.4.36]. They all replace tightenco/collect and thus cannot coexist.
- Root composer.json requires laravel/framework 5.4.* -> satisfiable by laravel/framework[v5.4.0, ..., v5.4.36].
- Root composer.json requires barryvdh/laravel-debugbar ^3.2 -> satisfiable by barryvdh/laravel-debugbar[v3.2.0, ..., v3.5.1].
composer.json file:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"askedio/laravel5-profanity-filter": "^1.10",
"aws/aws-sdk-php-laravel": "^3.4",
"barryvdh/laravel-dompdf": "0.8.0 as 0.7.0",
"dompdf/dompdf": "0.8.0 as 0.7.0",
"fideloper/proxy": "^4.2",
"intervention/image": "^2.5",
"jrean/laravel-user-verification": "4.1.10",
"laravel/framework": "5.4.*",
"laravel/socialite": "^3.3",
"laravel/tinker": "~1.0",
"league/flysystem-aws-s3-v3": "^1.0",
"nesbot/carbon": "1.36.2",
"owen-it/laravel-auditing": "4.1.1",
"predis/predis": "^1.1",
"tymon/jwt-auth": "^1.0.0-rc.2",
"zizaco/entrust": "^1.9"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.2",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.0"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/",
"Tests\\": "tests/"
}
},
"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"platform": {
"php": "7.0"
}
}
}
The dependencies in your composer.json cannot be resolved. The barryvdh/laravel-debugbar version specified cannot be used with the laravel/framework version specified.
The lowest version of barryvdh/laravel-debugbar allowed as specified is 3.2.0. Looking at its composer.json file, it requires laravel/framework version 5.5.x at a minimum. However, you've specified laravel/framework version 5.4.*.
Since your dependencies can't be resolved, you get the error. You'll need to upgrade your laravel/framework version, or downgrade your barryvdh/laravel-debugbar version.
That's a difficult one: your composer.json requires barryvdh/laravel-debugbar in v3.2, and this has a requirement for Laravel v5.5 or later. Through your own requirement, you restrict Laravel's version to v5.4 (through the line "laravel/framework": "5.4.*").
A quick solution could be to either downgrade barryvdh/laravel-debugbar to v2.4.3 (the latest one compatibel with Laravel 5.4), or upgrade your whole application to Laravel 5.5. You should do such upgrades from time to time - this helps you to manage such upgrades. The longer you wait, the more difficult it is to run upgrades, as your application and the packages you require drifted apart too much.
While you're upgrading: Why do you configure PHP 7.0? Your application should not run on such an outdated version any longer, as even the security support has ended two years ago

Cannot update dependencies with composer

I am trying to install the package tymon/jwt-auth via composer on production server and I am getting errors while resolving dependencies.
I have installed it succesfully on my local vagrant environment but when on production server the following output.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install laravel/socialite 3.0.x-dev
- Conclusion: remove guzzlehttp/guzzle 6.2.x-dev|install laravel/socialite 3.0.x-dev
- laravel/socialite v2.0.0 requires guzzlehttp/guzzle ~4.0 -> satisfiable by guzzlehttp/guzzle[4.x-dev].
- laravel/socialite v2.0.1 requires guzzlehttp/guzzle ~4.0|~5.0 -> satisfiable by guzzlehttp/guzzle[4.x-dev, 5.3.0, 5.3.1, 5.3.2, 5.3.3, 5.3.x-dev].
- laravel/socialite v2.0.2 requires guzzlehttp/guzzle ~4.0|~5.0 -> satisfiable by guzzlehttp/guzzle[4.x-dev, 5.3.0, 5.3.1, 5.3.2, 5.3.3, 5.3.x-dev].
- laravel/socialite v2.0.3 requires guzzlehttp/guzzle ~4.0|~5.0 -> satisfiable by guzzlehttp/guzzle[4.x-dev, 5.3.0, 5.3.1, 5.3.2, 5.3.3, 5.3.x-dev].
- laravel/socialite v2.0.4 requires guzzlehttp/guzzle ~4.0|~5.0 -> satisfiable by guzzlehttp/guzzle[4.x-dev, 5.3.0, 5.3.1, 5.3.2, 5.3.3, 5.3.x-dev].
- Can only install one of: guzzlehttp/guzzle[5.3.0, 6.2.x-dev].
- Can only install one of: guzzlehttp/guzzle[5.3.1, 6.2.x-dev].
- Can only install one of: guzzlehttp/guzzle[5.3.2, 6.2.x-dev].
- Can only install one of: guzzlehttp/guzzle[5.3.3, 6.2.x-dev].
- Can only install one of: guzzlehttp/guzzle[5.3.x-dev, 6.2.x-dev].
- Can only install one of: guzzlehttp/guzzle[4.x-dev, 6.2.x-dev].
- Installation request for guzzlehttp/guzzle (locked at 6.2.x-dev, required as ~5.3|~6.0) -> satisfiable by guzzlehttp/guzzle[6.2.x-dev].
- Conclusion: remove laravel/socialite 3.0.x-dev|install laravel/socialite v2.0.0|install laravel/socialite v2.0.1|install laravel/socialite v2.0.2|install laravel/socialite v2.0.3|install laravel/socialite v2.0.4
- Can only install one of: laravel/socialite[2.0.x-dev, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.10, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.11, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.12, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.13, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.14, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.15, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.16, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.17, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.18, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.19, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.20, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.21, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.22, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.5, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.6, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.7, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.8, 3.0.x-dev].
- Can only install one of: laravel/socialite[v2.0.9, 3.0.x-dev].
- Installation request for laravel/socialite (locked at 3.0.x-dev, required as ^2.0#dev) -> satisfiable by laravel/socialite[3.0.x-dev].
- Installation request for laravel/socialite ^2.0#dev -> satisfiable by laravel/socialite[2.0.x-dev, v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.18, v2.0.19, v2.0.2, v2.0.20, v2.0.21, v2.0.22, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9].
I've tried both on the server by running composer update and by doing composer require tymon/jwt-auth.
How can start resolving this problem?
Thanks in advance.
PS: This is my composer.json file.
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"minimum-stability": "dev",
"repositories": [
{
"type": "git",
"url": "https://github.com/cholung/laravel-model-builder.git"
},
{
"type": "git",
"url": "https://github.com/vorodevops/l5scaffold.git"
},
{
"type": "vcs",
"url": "https://github.com/alnutile/l5scaffold.git"
}
],
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"ramsey/uuid": "^3.2",
"intervention/image": "^2.3",
"guzzlehttp/guzzle": "~5.3|~6.0",
"laravel/socialite": "^2.0#dev",
"predis/predis": "^1.1#dev",
"pda/pheanstalk": "~3.0",
"xinax/laravel-gettext": "3.x",
"laravelcollective/html": "5.1.*",
"doctrine/dbal": "^2.5",
"moltin/laravel-cart": "^5.0",
"jenssegers/date": "^3.2",
"barryvdh/laravel-dompdf": "0.6.*",
"maatwebsite/excel": "~2.1.0",
"jenssegers/agent": "^2.3",
"yajra/laravel-datatables-oracle": "~6.0",
"wisembly/elephant.io": "^3.1",
"dimsav/laravel-translatable": "^6.0",
"sammyk/laravel-facebook-sdk": "^3.0"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1",
"jimbolino/laravel-model-builder" : "dev-master",
"laralib/l5scaffold": "dev-viewonly",
"barryvdh/laravel-debugbar": "^2.0"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/",
"Artvisual\\Tools\\": "packages/artvisual/tools/src",
"Artvisual\\Tools\\Providers\\": "packages/artvisual/tools/src/Providers",
"Artvisual\\Payment\\": "packages/artvisual/payment/src"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"pre-update-cmd": [
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
}
}
In case anyone still needs a solution to this. In this guide it says that you should
composer require the older version of guzzlehttp/guzzle, like for example composer require guzzlehttp/guzzle:^5.3.0
composer require the package you were looking out to install in the first place, like for example composer require laravel/socialite
composer remove the guzzlehttp/guzzle dependency again with composer remove guzzlehttp/guzzle
I got this error when requiring the jonasva/google-trends dependency and this solved it for me.
I've had same issue and the guzzle version was 7.0.
I have solved it by changing the version to 6.0 in composer.json and updated it.

Composer error when trying to upgrade from Laravel 5.2 to Laravel 5.3

I followed the instructions on the official Laravel doc site. So here is my composer file. I changed the symfony/css-selector and symfony/dom-crawler versions to 3.1 but still get this error:
Can only install one of: symfony/console[v3.1.0, v2.7.9].
- laravel/framework v5.3.0 requires symfony/console 3.1.* -> satisfiable by symfony/console[v3.1.0, v3.1.1, v3.1.10, v3.1.2,
v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9].
- Conclusion: don't install symfony/console v3.1.9|install kzykhys/ciconia v1.0.3
- Installation request for kzykhys/ciconia ~1.0.0 -> satisfiable by kzykhys/ciconia[v1.0.0, v1.0.1, v1.0.2, v1.0.3].
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.3.*",
"stevebauman/location": "1.3.*",
"dingo/api": "1.0.*#dev",
"yajra/laravel-datatables-oracle": "~6.0",
"kzykhys/ciconia": "~1.0.0",
"barryvdh/laravel-ide-helper": "^2.1",
"cornford/googlmapper": "2.*",
"likey/wiqi": "dev-master",
"predis/predis": "^1.1",
"rap2hpoutre/laravel-log-viewer": "^0.7.0",
"nicolaslopezj/searchable": "1.*",
"algolia/algoliasearch-laravel": "^1.3",
"bcdh/exist-db-rest-client": "^1.0",
"barryvdh/laravel-cors": "^0.8.2",
"artesaos/seotools": "^0.10.0",
"htmlmin/htmlmin": "^5.6",
"contentful/contentful": "2.*"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"symfony/css-selector": "3.1.*",
"symfony/dom-crawler": "3.1.*",
"oriceon/oauth-5-laravel": "dev-master",
"xethron/migrations-generator": "dev-l5",
"way/generators": "dev-master"
},
I get this error when I try to run composer update --no-scripts
Problem 1
- Conclusion: don't install laravel/framework v5.3.31
- Conclusion: don't install laravel/framework v5.3.30
....
install symfony/console v2.8.44|install symfony/console v2.8.45
- Installation request for laravel/framework 5.3.* -> satisfiable by laravel/framework[v5.3.0, v5.3.1, v5.3.10, v5.3.11, v5.3.12, v5.3.13, v5.3.14, v5.3.15, v5.3.16, v5.3.17, v5.3.18, v5.3.19, v5.3.2, v5.3.20, v5.3.21, v5.3.22, v5.3.23, v5.3.24, v5.3.25, v5.3.26, v5.3.27, v5.3.28, v5.3.29, v5.3.3, v5.3.30, v5.3.31, v5.3.4, v5.3.5, v5.3.6, v5.3.7, v5.3.8, v5.3.9].
- Conclusion: don't install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.1|install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.2|install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.3|install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.4|install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.5|install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.6|install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.7|install kzykhys/ciconia v1.0.3
- Conclusion: don't install symfony/console v3.1.8|install kzykhys/ciconia v1.0.3
The reason why you can't update is because you have package named kzykhys/ciconia if you look inside the composer.json of it you will notice the line that requires this package to have "symfony/console":">=2.3,<2.5-dev" with conflicts with the laravel/framework requirements because it requires "symfony/console": "3.1.*""
| | kzykhys/ciconia | laravel/framework |
|---------------------------|-----------------|-------------------|
| `symfony/console` version | >=2.3,<2.5-dev | 3.1.* |

composer install requirements could not be resolved but satisfiable requirements are being met

I have this set of requirements for composer:
"require": {
"laravel/framework": "4.2.*#dev",
"twbs/bootstrap": "3.3.*#dev",
"zizaco/confide": "~3.2",
"zizaco/entrust": "~1.2",
"bllim/datatables": "dev-master",
"guzzlehttp/guzzle": "4.2.*#dev",
"fabpot/goutte": "2.*#dev",
"laravelbook/ardent": "dev-master",
"anahkiasen/former": "dev-master",
"aws/aws-sdk-php": "2.7.*#dev",
"aws/aws-sdk-php-laravel": "dev-master",
"dingo/api": "0.7.*#dev",
"doctrine/dbal": "2.6.*#dev",
"mailgun/mailgun-php": "dev-master",
"iron-io/iron_mq": "dev-master",
"bugsnag/bugsnag-laravel": "1.*"
},
"require-dev": {
"way/generators": "~2.0",
"phpunit/phpunit-mock-objects": "2.3.*#dev",
"phpunit/phpunit": "4.3.*#dev",
"mockery/mockery": "0.9.*#dev",
"summerstreet/woodling": "dev-master",
"itsgoingd/clockwork": "dev-master",
"hannesvdvreken/guzzle-clockwork": "dev-master",
"fzaninotto/faker": "1.5.*#dev",
"soapbox/laravel-formatter": "dev-master",
"raveren/kint": "dev-master",
"barryvdh/laravel-ide-helper": "dev-master"
}
When I run composer install I get this error message:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for laravelbook/ardent dev-master -> satisfiable by laravelbook/ardent[dev-master].
- laravelbook/ardent dev-master requires illuminate/support ~4.1 -> satisfiable by laravel/framework[v4.2.0, v4.2.1, v4.2.10, v4.2.11, v4.2.12, v4.2.13, v4.2.14, v4.2.15, v4.2.16, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9], illuminate/support[v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.13, v4.1.14, v4.1.15, v4.1.16, v4.1.17, v4.1.18, v4.1.19, v4.1.2, v4.1.20, v4.1.21, v4.1.22, v4.1.23, v4.1.24, v4.1.25, v4.1.26, v4.1.27, v4.1.28, v4.1.29, v4.1.3, v4.1.30, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9, v4.2.1, v4.2.12, v4.2.16, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9].
- Can only install one of: illuminate/support[v5.0.0, v4.1.0].
- Can only install one of: illuminate/support[v5.0.0, v4.1.1].
- Can only install one of: illuminate/support[v5.0.0, v4.1.10].
- Can only install one of: illuminate/support[v5.0.0, v4.1.11].
- Can only install one of: illuminate/support[v5.0.0, v4.1.12].
- Can only install one of: illuminate/support[v5.0.0, v4.1.13].
- Can only install one of: illuminate/support[v5.0.0, v4.1.14].
- Can only install one of: illuminate/support[v5.0.0, v4.1.15].
- Can only install one of: illuminate/support[v5.0.0, v4.1.16].
- Can only install one of: illuminate/support[v5.0.0, v4.1.17].
- Can only install one of: illuminate/support[v5.0.0, v4.1.18].
- Can only install one of: illuminate/support[v5.0.0, v4.1.19].
- Can only install one of: illuminate/support[v5.0.0, v4.1.2].
- Can only install one of: illuminate/support[v5.0.0, v4.1.20].
- Can only install one of: illuminate/support[v5.0.0, v4.1.21].
- Can only install one of: illuminate/support[v5.0.0, v4.1.22].
- Can only install one of: illuminate/support[v5.0.0, v4.1.23].
- Can only install one of: illuminate/support[v5.0.0, v4.1.24].
- Can only install one of: illuminate/support[v5.0.0, v4.1.25].
- Can only install one of: illuminate/support[v5.0.0, v4.1.26].
- Can only install one of: illuminate/support[v5.0.0, v4.1.27].
- Can only install one of: illuminate/support[v5.0.0, v4.1.28].
- Can only install one of: illuminate/support[v5.0.0, v4.1.29].
- Can only install one of: illuminate/support[v5.0.0, v4.1.3].
- Can only install one of: illuminate/support[v5.0.0, v4.1.30].
- Can only install one of: illuminate/support[v5.0.0, v4.1.4].
- Can only install one of: illuminate/support[v5.0.0, v4.1.5].
- Can only install one of: illuminate/support[v5.0.0, v4.1.6].
- Can only install one of: illuminate/support[v5.0.0, v4.1.7].
- Can only install one of: illuminate/support[v5.0.0, v4.1.8].
- Can only install one of: illuminate/support[v5.0.0, v4.1.9].
- Can only install one of: illuminate/support[v5.0.0, v4.2.1].
- Can only install one of: illuminate/support[v5.0.0, v4.2.12].
- Can only install one of: illuminate/support[v5.0.0, v4.2.16].
- Can only install one of: illuminate/support[v5.0.0, v4.2.2].
- Can only install one of: illuminate/support[v5.0.0, v4.2.3].
- Can only install one of: illuminate/support[v5.0.0, v4.2.4].
- Can only install one of: illuminate/support[v5.0.0, v4.2.5].
- Can only install one of: illuminate/support[v5.0.0, v4.2.6].
- Can only install one of: illuminate/support[v5.0.0, v4.2.7].
- Can only install one of: illuminate/support[v5.0.0, v4.2.8].
- Can only install one of: illuminate/support[v5.0.0, v4.2.9].
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.0
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.1
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.10
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.11
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.12
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.13
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.14
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.15
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.16
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.2
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.3
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.4
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.5
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.6
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.7
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.8
- don't install illuminate/filesystem v5.0.0|don't install laravel/framework v4.2.9
- barryvdh/laravel-ide-helper dev-master requires illuminate/support 5.0.x -> satisfiable by illuminate/support[v5.0.0].
- barryvdh/laravel-ide-helper dev-master requires illuminate/filesystem 5.0.x -> satisfiable by illuminate/filesystem[v5.0.0].
- Installation request for barryvdh/laravel-ide-helper dev-master -> satisfiable by barryvdh/laravel-ide-helper[dev-master].
I'm not sure how to resolve this. I need Ardent and I need Laravel 4.2. I've never had a problem installing Ardent with Laravel 4.2 in the past, so I can't figure out why it would be tripped up now, especially since composer says it is satisfiable with the very Laravel version I'm trying to install.
What's going on here?
As it turns out, this had nothing to do with Ardent despite the error message. The culprit causing the mayhem was barryvdh/laravel-ide-helper. When I changed that requirement from dev-master to ~1.11 it became compatible with Laravel 4.2 again and all of the other errors went away.
If anyone is having a similar problem, just go through the list and see if any packages were updated to be compatible with 5.0, but not backward compatible with 4.*.

Resources