php-sru-client icon indicating copy to clipboard operation
php-sru-client copied to clipboard

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

Open danmichaelo opened this issue 6 years ago • 1 comments

If you get this:

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

  Problem 1
    - Installation request for scriptotek/sru-client ^0.7 -> satisfiable by scriptotek/sru-client[v0.7.0].
    - scriptotek/sru-client v0.7.0 requires psr/http-factory-implementation ^1.0 -> no matching package found.

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.

It means you need to install some HTTP factory library.

Solution: Install sru-client with the Guzzle HTTP client and factory libraries:

composer require scriptotek/sru-client php-http/guzzle6-adapter http-interop/http-factory-guzzle

Of course, you're also free to use other HTTP libraries.

danmichaelo avatar Apr 03 '19 19:04 danmichaelo

Hi @danmichaelo I would like to use the sru-client with the symfony/http-client Can you give me a hint how to set it up for Symfony like you have for Laravel in your readme?

mathiasstocker avatar Feb 13 '23 16:02 mathiasstocker