PHP Classes

Laravel OneSignal REST API: Access OneSignal API from a Laravel application

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 26 All time: 11,235 This week: 455Up
Version License PHP version Categories
laravel-onesignal 1.0.0MIT/X Consortium ...5PHP 5, Wireless and Mobile, Libraries, W...
Description 

Author

This package can access OneSignal API from a Laravel application.

It provides classes that can send HTTP requests to OneSignal API to perform several types of operations.


Currently, it can call several API endpoints to:

- Handle notifications to be delivered to devices.

- Manage API applications

- Manage registered devices

Picture of Thiago Przyczynski
  Performance   Level  
Innovation award
Innovation award
Nominee: 8x

 

Documentation

Laravel One Signal Package

Installation

Install with composer:

composer require thiagoprz/laravel-onesignal

Publish configuration

php artisan vendor:publish --provider=Thiagoprz\Onesignal\OnesignalServiceProvider

Roadmap

| Method | STATUS | Tests | |----------------------|-------------|------| | Create Notification | In Progress | No | | Cancel Notification | Todo | No | | View Apps | Todo | No | | View an App | Done | Yes | | Create an App | Todo | No | | Update an App | Todo | No | | View Devices | Todo | No | | View Device | Todo | No | | Add a Device | Todo | No | | Edit Device | Todo | No | | View Notification | Todo | No | | View Notifications | Todo | No | | Notification History | Todo | No | | Create Segments | Todo | No | | Delete Segments | Todo | No | | View Outcomes | Todo | No | | Delete Player Record | Todo | No |

Package Testing

PHPUnit

Replace your app id, user key and app key with the right values:

ONESIGNAL_APP_ID={APP_ID} ONESIGNAL_API_APP_KEY={YOUR_APP_KEY} ONESIGNAL_API_USER_KEY={YOUR_USER_ID} php artisan test

For more information on keys and Ids please see https://documentation.onesignal.com/docs/accounts-and-keys

License

This package is licensed under the MIT license.


  Files folder image Files (24)  
File Role Description
Files folder imagesrc (1 file, 6 directories)
Files folder imagetests (1 file, 1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file License.txt Doc. Documentation
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:26
This week:0
All time:11,235
This week:455Up