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

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

Open
danmichaelo opened this issue Apr 3, 2019 · 1 comment
Labels

Comments

@danmichaelo
Copy link
Member

danmichaelo commented Apr 3, 2019

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 danmichaelo pinned this issue Apr 3, 2019
@danmichaelo danmichaelo added the FAQ label Apr 3, 2019
@mathiasstocker
Copy link

mathiasstocker commented Feb 13, 2023

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?

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

No branches or pull requests

2 participants