scriptotek / php-sru-client

PHP client for Search/Retrieve via URL (SRU)
MIT License
18 stars 3 forks source link

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

Open danmichaelo opened 5 years ago

danmichaelo commented 5 years ago

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.

mathiasstocker commented 1 year ago

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?