Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with installation #1

Open
ponasromas opened this issue Nov 10, 2023 · 1 comment
Open

Problem with installation #1

ponasromas opened this issue Nov 10, 2023 · 1 comment

Comments

@ponasromas
Copy link

composer require usarise/turnstile:*

./composer.json has been updated
Running composer update usarise/turnstile
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires usarise/turnstile * -> satisfiable by usarise/turnstile[v0.1.0, ..., v0.4.1].
- usarise/turnstile[v0.1.0, ..., v0.4.1] require psr/http-client-implementation ^1.0 -> could not be found in any version, but the following packages provide it:
- guzzlehttp/guzzle Guzzle is a PHP HTTP client library
- symfony/http-client Provides powerful methods to fetch HTTP resources synchronously or asynchronously
- php-http/discovery Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations
- php-http/guzzle7-adapter Guzzle 7 HTTP Adapter
- php-http/guzzle6-adapter Guzzle 6 HTTP Adapter
- php-http/curl-client PSR-18 and HTTPlug Async client with cURL
- symfony/symfony The Symfony PHP framework
- kriswallsmith/buzz Lightweight HTTP client
- cakephp/cakephp The CakePHP framework
- typo3/cms-core TYPO3 CMS Core
- php-http/mock-client Mock HTTP client
- nimbly/shuttle Simple PSR-18 HTTP client.
- php-http/socket-client Socket client for PHP-HTTP
- multisafepay/magento2-core MultiSafepay core module for Magento 2
- php-http/guzzle5-adapter Guzzle 5 HTTP Adapter
- php-http/cakephp-adapter CakePHP adapter for PHP-HTTP
- mjelamanov/psr18-guzzle A PSR-18 adapter for guzzle 6 client
- prestashop/module-lib-guzzle-adapter Plug modules to the Guzzle client available on a running shop
- voku/httpful A Readable, Chainable, REST friendly, PHP HTTP Client
- ricardofiorani/guzzle-psr18-adapter A Guzzle PSR-18 adapter
... and 87 more.
Consider requiring one of these to satisfy the psr/http-client-implementation requirement.

Potential causes:

@usarise
Copy link
Owner

usarise commented Nov 17, 2023

Installation requires implementation of the virtual package psr/http-client-implementation or more precisely
any implementation of PSR-17 and PSR-18

As indicated in the log:

usarise/turnstile[v0.1.0, ..., v0.4.1] require psr/http-client-implementation ^1.0 -> could not be found in any version, but the following packages provide it:

  • guzzlehttp/guzzle Guzzle is a PHP HTTP client library
  • symfony/http-client Provides powerful methods to fetch HTTP resources synchronously or asynchronously
  • php-http/discovery Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations
    ... and more.

Consider requiring one of these to satisfy the psr/http-client-implementation requirement.

Examples for the first two packages:
https://github.com/usarise/turnstile-php#guzzle-http-client
https://github.com/usarise/turnstile-php#symfony-http-client-and-nyholm-psr-7

UPD: From version 0.5.0 also installation requires implementation of the virtual package psr/http-factory-implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants