openfoodfacts / openfoodfacts-laravel

Open Food Facts API wrapper for Laravel
MIT License
151 stars 17 forks source link

composer fail : laravel 9 compatibility #26

Closed zakariayacine closed 6 months ago

zakariayacine commented 2 years ago

Hello, when i tried to install it in my project i had this error !

 Problem 1
    - openfoodfacts/openfoodfacts-laravel[dev-dependabot/github_actions/actions/cache-3.0.7, dev-explicit_geography, dev-master, v0.3.0] require openfoodfacts/openfoodfacts-php ^0.2.4 -> satisfiable by openfoodfacts/openfoodfacts-php[0.2.4].
    - openfoodfacts/openfoodfacts-laravel v0.1 requires illuminate/support 5.7.x|5.8.x|^6.0|^7.0 -> found illuminate/support[v5.7.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but these were not loaded, likely because it conflicts with another require.
    - openfoodfacts/openfoodfacts-laravel[v0.2, ..., v0.2.2] require illuminate/support 5.7.x|5.8.x|^6.0|^7.0|^8.0 -> found illuminate/support[v5.7.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
    - openfoodfacts/openfoodfacts-php 0.2.4 requires psr/log ^1.0 -> found psr/log[1.0.0, ..., 1.1.4] 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.
    - Root composer.json requires openfoodfacts/openfoodfacts-laravel * -> satisfiable by openfoodfacts/openfoodfacts-laravel[dev-dependabot/github_actions/actions/cache-3.0.7, dev-explicit_geography, dev-master, v0.1, ..., v0.3.0, 9999999-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Can anyone help me in this ! Im junior developper so im not very experimented thanks !!

prey87 commented 1 year ago

push

epalmans commented 6 months ago

For Laravel 9, install: