pusher / pusher-http-php

PHP library for interacting with the Pusher Channels HTTP API
https://pusher.com/docs/server_api_guide
1.41k stars 307 forks source link

can't install package with laravel "8.54" #311

Closed zaidpro closed 2 years ago

zaidpro commented 2 years ago

can't install this package with Laravel "8.54"

when run composer require pusher/pusher-php-server it given this error


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

  Problem 1
    - pusher/pusher-php-server[7.0.0, ..., 7.0.1] require psr/log ^1.0 -> found psr/log[1.0.0, ..., 1.1.4] but the package is fixed to 2.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 pusher/pusher-php-server ^7.0 -> satisfiable by pusher/pusher-php-server[7.0.0, 7.0.1].

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.
zaidpro commented 2 years ago

fixed with this composer require pusher/pusher-php-server --with-all-dependencies