PHP Classes

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

Recommend this page to a friend!
  Info   View files Documentation   View files View files (24)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-04-22 (21 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 17 This week: 1All time: 10,604 This week: 174Up
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: 6x

 

Details

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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:17
This week:1
All time:10,604
This week:174Up

For more information send a message to info at phpclasses dot org.