countries-laravel icon indicating copy to clipboard operation
countries-laravel copied to clipboard

PragmaRX/contries-laravel not supported in laravel 9

Open Stephan-MC opened this issue 2 years ago • 5 comments

Please how can i install PragmaRX/countries-laravel in laravel 9. Love this pack a lot. I don't think there is any package better than this

Stephan-MC avatar Apr 26 '22 02:04 Stephan-MC

+1

Using version ^0.7.0 for pragmarx/countries-laravel
./composer.json has been updated
Running composer update pragmarx/countries-laravel
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires pragmarx/countries-laravel ^0.7.0 -> satisfiable by pragmarx/countries-laravel[v0.7.0].
    - pragmarx/countries-laravel v0.7.0 requires psr/simple-cache ^1.0 -> found psr/simple-cache[1.0.0, 1.0.1] but the package is fixed to 3.0.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.

Lotuashvili avatar Jul 01 '22 17:07 Lotuashvili

there is an issue when installing in laravel10

 Problem 1
    - pragmarx/countries[v0.1.0, ..., v0.7.2] require psr/simple-cache ^1.0 -> found psr/simple-cache[1.0.0, 1.0.1] but the package is fixed to 3.0.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.
    - pragmarx/countries[v0.5.0, ..., v0.5.2] require pragmarx/coollection >=5.5 -> found pragmarx/coollection[dev-master, v0.1.0, ..., v0.8.1, 1.0.x-dev (a
lias of dev-master)] but it does not match the constraint.
    - pragmarx/countries[v0.8.0, ..., v0.8.1] require psr/simple-cache ^2.0 -> found psr/simple-cache[2.0.0] but the package is fixed to 3.0.0 (lock file ve
rsion) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - pragmarx/countries v0.8.2 requires psr/simple-cache ^1.0|^2.0 -> found psr/simple-cache[1.0.0, 1.0.1, 2.0.0] but the package is fixed to 3.0.0 (lock f
ile version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires pragmarx/countries * -> satisfiable by pragmarx/countries[v0.1.0, ..., v0.8.2].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require pragmarx/countries:*" to figure out if any version
is installable, or "composer require pragmarx/countries:^2.1" if you know which you need.

mahmoud7796 avatar Mar 05 '23 13:03 mahmoud7796

same here

rabol avatar Mar 24 '23 08:03 rabol

Install with this on command line

composer require pragmarx/countries-laravel:* -W

alpha414-bot avatar May 21 '23 13:05 alpha414-bot

Thanks @alpha414-bot, that works, but it's not really a solution as Laravel installs psr/simple-cache:3.0.0 for a reason (1.0.2 doesn't enforce return types, which may cause issues if not properly handled elsewhere). While this works for now, it would be nice to see an update of this wonderful countries package to support psr/simple-cache:3.0.0. Can't be that much work, since nothing breaking has changed I think.

eleven59 avatar Oct 31 '23 20:10 eleven59