squirephp / squire

A library of static Eloquent models for common fixture data.
MIT License
1k stars 69 forks source link

Couldn't install currencies packege #63

Closed KiaBoluki closed 1 year ago

KiaBoluki commented 1 year ago

Describe the bug I got this error on installing the squirephp/currencies-en package :

$ composer require squirephp/currencies-en
./composer.json has been updated
Running composer update squirephp/currencies-en --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - squirephp/currencies-en v3.4.1 requires squirephp/currencies v3.4.1 -> satisfiable by squirephp/currencies[v3.4.1].
    - squirephp/currencies-en[v2.0.1, ..., v2.3.2] require illuminate/support ^6.0 || ^7.0 || ^8.0 -> found illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - squirephp/currencies-en[v3.0.0, ..., v3.2.1] require illuminate/support ^8.0 -> found illuminate/support[v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - squirephp/currencies-en[v3.3.0, ..., v3.3.1] require illuminate/support ^8.0|^9.0 -> found illuminate/support[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.10] but these were not loaded, likely because it conflicts with another require.
    - squirephp/currencies-en v3.4.0 requires squirephp/repository v3.4.0 -> found squirephp/repository[v3.4.0] but these were not loaded, likely because it conflicts with another require.
    - squirephp/currencies v3.4.1 requires akaunting/laravel-money ^1.2|^2.1 -> found akaunting/laravel-money[1.2.0, 1.2.1, 1.2.2, 1.2.3, 2.1.0] but it conflicts with your root composer.json require (^4.0).
    - Root composer.json requires squirephp/currencies-en * -> satisfiable by squirephp/currencies-en[v2.0.1, ..., v2.3.2, v3.0.0, ..., v3.4.1].

Context

Additional details I also tried the recommended commands by composer :

composer require squirephp/currencies-en -W composer require squirephp/currencies-en:* composer require squirephp/currencies-en:* -W

Same result.

danharrin commented 1 year ago

These are not errors with the package, they are dependency conflicts with other packages in your application. For example, it looks like akaunting/laravel-money is installed with a different version. Feel free to PR if you need a dependency bump anywhere.

stephenjude commented 1 year ago

@danharrin I think we need to bump to akaunting/laravel-money 5.x as the package is currently tied to 2.1 which is out of date already.

danharrin commented 1 year ago

Go for it

stephenjude commented 1 year ago

Okay

stephenjude commented 1 year ago

@danharrin Can we drop Laravel 8.0 support too?

danharrin commented 1 year ago

Lets keep support for old versions of all packages as long as it does not hinder the code quality of the package to implement workarounds

stephenjude commented 1 year ago

Aright, I have submitted a PR for akaunting/laravel-money 5.x support #72