Download the PHP package brandonhudson/onesignal-php-api without Composer
On this page you can find all versions of the php package brandonhudson/onesignal-php-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brandonhudson/onesignal-php-api
More information about brandonhudson/onesignal-php-api
Files in brandonhudson/onesignal-php-api
Informations about the package onesignal-php-api
OneSignal API for PHP
Install
Note: All examples are for v2, if you are using PHP <7.3 please read v1 documentation.
This packages requires a PSR-18 HTTP client and PSR-17 HTTP factories to work. You can choose any from psr/http-client-implementation and psr/http-factory-implementation
Example with Symfony HttpClient and nyholm/psr7 http factories, install it with Composer:
And now configure the OneSignal api client:
How to use this library
Applications API
View the details of all of your current OneSignal applications (official documentation):
View the details of a single OneSignal application (official documentation):
Create a new OneSignal app (official documentation):
Update the name or configuration settings of OneSignal application (official documentation):
Create Segments (official documentation):
Delete Segments (official documentation):
Devices API
View the details of multiple devices in one of your OneSignal apps (official documentation):
View the details of an existing device in your configured OneSignal application (official documentation):
Register a new device to your configured OneSignal application (official documentation):
Update an existing device in your configured OneSignal application (official documentation):
Notifications API
View the details of multiple notifications (official documentation):
Get the details of a single notification (official documentation):
Create and send notifications or emails to a segment or individual users. You may target users in one of three ways using this method: by Segment, by Filter, or by Device (at least one targeting parameter must be specified) (official documentation):
Mark notification as opened (official documentation):
Stop a scheduled or currently outgoing notification (official documentation):
Notification History (official documentation):
Questions?
If you have any questions please open an issue.
License
This library is released under the MIT License. See the bundled LICENSE file for details.
All versions of onesignal-php-api with dependencies
ext-json Version *
psr/http-client Version ^1.0
psr/http-client-implementation Version ^1.0
psr/http-factory Version ^1.0
psr/http-factory-implementation Version ^1.0
symfony/options-resolver Version ^3.4|^4.0|^5.0