Comments (7)
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.
@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.
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.
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.
It reads your composer.json/composer.lock files to check for it
from onesignal-php-api.
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.
@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)
- Delete OneSignal app via REST API HOT 1
- I have an error message on php 7.3 HOT 1
- Email sending not possible HOT 1
- How to send multiple different messages to different player_id, in a single send? HOT 1
- Add new "Edit tags with external user id" endpoint
- Add new "View Outcomes" endpoint
- Composer Install Error HOT 3
- Unknown Apns Error Response HOT 7
- channel_for_external_user_ids is not defined HOT 1
- PHP8 support HOT 3
- New feature - Delete device
- Add value "send_after" to allowed options for "delayed_option" property HOT 2
- your_auth_key - What is it?
- Readme configuration not working HOT 1
- Error on sending push notifications using segments HOT 1
- null value for basic_auth_key when adding app by api HOT 2
- New API v11 HOT 5
- cURL error 60: SSL certificate problem: certificate has expired HOT 3
- Question HOT 1
- Symfony 7 support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onesignal-php-api.