Meteo-Concept / hcaptcha-bundle

A Symfony 4+ bundle to bring hCaptcha into your forms
Other
22 stars 10 forks source link

meteo-concept/hcaptcha-bundle dev-master requires psr/http-factory-implementation #2

Closed kyeno closed 4 years ago

kyeno commented 4 years ago

...and it looks like psr/http-factory-implementation is an unknown package. php-fig/http-factory is as close as it gets.

lgeorget commented 4 years ago

Hello !

Yes, this is actually a virtual package, so you have to chose a real implementation to satisfy the dependency (see this blog post for instance https://alanstorm.com/composer-virtual-packages/).

For Symfony 4 and 5, you can use symfony/http-client. For Symfony 3, you can use guzzlehttp/guzzle.

Virtual dependencies are not handled very cleverly by composer yet, but there are proposals to fix that... like https://github.com/composer/composer/issues/4535

lgeorget commented 4 years ago

Oh, for the http-factory, you need to install nyholm/psr7 by the way, the others are for the http-client.