GithubHelp home page GithubHelp logo

Comments (7)

norkunas avatar norkunas commented on June 3, 2024

Hello @novinfard,
You need to install any php-http client implementation to use this library. In readme you can find that i've mentioned guzzle5 and guzzle6 adapters. Or you can choose from any other alternative listed in https://packagist.org/providers/php-http/client-implementation.

from onesignal-php-api.

novinfard avatar novinfard commented on June 3, 2024

@norkunas Thanks,
It seems you need to update your composer to set one of the these at least. Otherwise, I couldn't install your package and manual installation isn't a good solution.

from onesignal-php-api.

norkunas avatar norkunas commented on June 3, 2024

This library requires any of php-http/client-implementation that's why you get that error because you didn't install any implementation before. If you'd be able to install without any implementation so api wouldn't work for you, so I don't fully understand what you mean.

from onesignal-php-api.

novinfard avatar novinfard commented on June 3, 2024

Maybe it is a bit off topic, but how composer found I have not implemented any of php-http/client-implementations? Does it check PHP extensions or stand-alone PHP libraries inside the folder I want to setup it?

from onesignal-php-api.

norkunas avatar norkunas commented on June 3, 2024

It reads your composer.json/composer.lock files to check for it

from onesignal-php-api.

johnerck avatar johnerck commented on June 3, 2024

I had this same issue when I was trying to get up and running with this library. This thread helped me figure it out. Running php composer.phar require php-http/guzzle6-adapter put things back in order and I was able to get things up and running. I agree with @novinfard that it would be ideal to get the composer meta data updated in some way so it pulls this package in automatically if needed.

from onesignal-php-api.

norkunas avatar norkunas commented on June 3, 2024

@johnerck that's not how the virtual packages works. Also composer says in the error that adapter needs to be installed to resolve the requirements, so I don't understand what part of the error is unclear.

When I'll have time I'lll update the readme to more friendly version with notes that the chosen adapter should be installed before requiring this library. For now I'll leave this issue open if others will run into this issue.

from onesignal-php-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.