Download the PHP package norkunas/onesignal-php-api without Composer

On this page you can find all versions of the php package norkunas/onesignal-php-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package onesignal-php-api

OneSignal API for PHP

Latest Stable Version Scrutinizer Code Quality Total Downloads GitHub Workflow Status

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):

View the details of all the outcomes associated with your app (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):

Update an existing device's tags in one of your OneSignal apps using the External User ID (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 a discussion.

License

This library is released under the MIT License. See the bundled LICENSE file for details.


All versions of onesignal-php-api with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
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/deprecation-contracts Version ^2.1|^3.0
symfony/options-resolver Version ^4.4|^5.0|^6.0|^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package norkunas/onesignal-php-api contains the following files

Loading the files please wait ....