Error when installing
devope opened this issue · comments
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires janu-software/facebook-php-sdk ^0.1.4 -> satisfiable by janu-software/facebook-php-sdk[v0.1.4].
- janu-software/facebook-php-sdk v0.1.4 requires php-http/client-implementation ^1.0 -> could not be found in any version, but the following packages provide it:
- symfony/http-client Provides powerful methods to fetch HTTP resources synchronously or asynchronously
- php-http/guzzle6-adapter Guzzle 6 HTTP Adapter
- symfony/symfony The Symfony PHP framework
- php-http/curl-client PSR-18 and HTTPlug Async client with cURL
- php-http/guzzle7-adapter Guzzle 7 HTTP Adapter
- kriswallsmith/buzz Lightweight HTTP client
- php-http/mock-client Mock HTTP client
- php-http/socket-client Socket client for PHP-HTTP
- php-http/guzzle5-adapter Guzzle 5 HTTP Adapter
- php-http/react-adapter React HTTP Adapter
- voku/httpful A Readable, Chainable, REST friendly, PHP HTTP Client
- php-http/buzz-adapter Buzz HTTP Adapter
- php-http/cakephp-adapter Cake adapter for PHP-HTTP
- windwalker/http Windwalker Http package
- code-tool/curl-client cURL client
- jorge-matricali/http-client A wrapper of libcurl that implements PSR-7 HTTP message interface.
- phpgt/fetch Asynchronous HTTP client with promises for PHP 7 applications.
- windwalker/framework The next generation PHP framework.
- swisnl/php-http-fixture-client Fixture client for PHP-HTTP
- betalabs/guzzle6-adapter Guzzle 6 HTTP Adapter
... and 33 more.
Consider requiring one of these to satisfy the php-http/client-implementation requirement.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require janu-software/facebook-php-sdk:*" to figure out if any version is installable, or "composer require janu-software/facebook-php-sdk:^2.1" if you know which you need.
How I solved this
composer require symfony/http-client
composer janu-software/facebook-php-sdk
This SDK allows you to use the package you like.