Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bharatkmoon's avatar

PHP composer: Your requirements could not be resolved to an installable set of packages . when install cybersource/rest-client-php

Not able to install cybersource/rest-client-php in Laravel 8, get the dependency error with firebase/php-jwt.

Please help me take me out of this.

Laravel version: ^8 PHP version: 7.4

Your requirements could not be resolved to an installable set of packages.

Problem 1 - Root composer.json requires cybersource/rest-client-php 0.0.40 -> satisfiable by cybersource/rest-client-php[0.0.40]. - cybersource/rest-client-php 0.0.40 requires firebase/php-jwt ^5.0.0 -> found firebase/php-jwt[v5.0.0, ..., v5.5.1] but the package is fixed to v6.10.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.

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

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

0 likes
5 replies
dhanar98's avatar

Hi bharatkmoon ,

The problem is cybersource/rest-client-php 0.0.40 requires firebase/php-jwt in 5.0.0 version but in your composer.lock already it is in 6.x.x version so you need to downgrade the firebase/php-jwt version to 5.x.x version this will help you to resolve the issue.

bharatkmoon's avatar

@dhanar98

I have tried to downgrade the firebase/php-jwt to 5.x.x with the command below I am facing another dependency error. composer require firebase/php-jwt ^5.0.0

I have got the error below when downgrading.

Problem 1 - Root composer.json requires firebase/php-jwt 5.0.0, found firebase/php-jwt[v5.0.0] but these were not loaded, likely because it conflicts with another require. Problem 2 - google/auth v1.33.0 requires firebase/php-jwt ^6.0 -> found firebase/php-jwt[v6.0.0, ..., v6.10.0] but it conflicts with your root composer.json require (5.0.0). - kreait/firebase-php 5.26.5 requires google/auth ^1.18 -> satisfiable by google/auth[v1.33.0]. - kreait/firebase-php is locked to version 5.26.5 and an update of this package was not requested.

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

dhanar98's avatar

@bharatkmoon

composer require firebase/php-jwt:^5.0 --with-all-dependencies

try this command this will update the dependency based on the other packages

bharatkmoon's avatar

@dhanar98

get this error

Your requirements could not be resolved to an installable set of packages.

Problem 1 - Root composer.json requires firebase/php-jwt 5.0, found firebase/php-jwt[v5.0.0] but these were not loaded, likely because it conflicts with another require. Problem 2 - google/auth v1.33.0 requires firebase/php-jwt ^6.0 -> found firebase/php-jwt[v6.0.0, ..., v6.10.0] but it conflicts with your root composer.json require (5.0). - kreait/firebase-php 5.26.5 requires google/auth ^1.18 -> satisfiable by google/auth[v1.33.0]. - kreait/firebase-php is locked to version 5.26.5 and an update of this package was not requested.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

dhanar98's avatar

@bharatkmoon based on the error the packages are related to one package to another package version. better if upgrading the those packages in higher version is not affect your application flow update it.

Best Approach :

Create a seperate branch work on this in your local server first

Please or to participate in this conversation.