Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PragmaRX/contries-laravel not supported in laravel 9 #33

Open
Stephan-MC opened this issue Apr 26, 2022 · 5 comments
Open

PragmaRX/contries-laravel not supported in laravel 9 #33

Stephan-MC opened this issue Apr 26, 2022 · 5 comments

Comments

@Stephan-MC
Copy link

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

@Lotuashvili
Copy link

+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.

@mahmoud7796
Copy link

mahmoud7796 commented Mar 5, 2023

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.

@rabol
Copy link

rabol commented Mar 24, 2023

same here

@alpha414-bot
Copy link

Install with this on command line

composer require pragmarx/countries-laravel:* -W

@eleven59
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants