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  
Name: Thiago Przyczynski <contact>
Classes: 14 packages by
Country: Brazil Brazil
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

  Files folder image Files  /  src  
File Role Description
Files folder imageconfig (1 file)
Files folder imageEnums (1 file)
Files folder imageExceptions (2 files)
Files folder imageInterfaces (3 files)
Files folder imageOneSignal (3 files, 1 directory)
Files folder imageTraits (1 file)
  Plain text file OnesignalServiceProvider.php Class Class source

  Files folder image Files  /  src  /  config  
File Role Description
  Accessible without login Plain text file onesignal.php Conf. Configuration script

  Files folder image Files  /  src  /  Enums  
File Role Description
  Accessible without login Plain text file Scope.php Aux. Auxiliary script

  Files folder image Files  /  src  /  Exceptions  
File Role Description
  Plain text file OnesignalClientException.php Class Class source
  Plain text file OnesignalException.php Class Class source

  Files folder image Files  /  src  /  Interfaces  
File Role Description
  Plain text file AppsInterface.php Class Class source
  Plain text file ClientInterface.php Class Class source
  Plain text file NotificationInterface.php Class Class source

  Files folder image Files  /  src  /  OneSignal  
File Role Description
Files folder imageResponses (3 files)
  Plain text file Apps.php Class Class source
  Plain text file Client.php Class Class source
  Plain text file Notification.php Class Class source

  Files folder image Files  /  src  /  OneSignal  /  Responses  
File Role Description
  Plain text file AppResponse.php Class Class source
  Plain text file ClientResponse.php Class Class source
  Plain text file NotificationResponse.php Class Class source

  Files folder image Files  /  src  /  Traits  
File Role Description
  Plain text file Logable.php Class Class source

  Files folder image Files  /  tests  
File Role Description
Files folder imageUnit (2 directories)
  Plain text file TestCase.php Class Class source

  Files folder image Files  /  tests  /  Unit  
File Role Description
Files folder imageApps (1 file)
Files folder imageClient (2 files)

  Files folder image Files  /  tests  /  Unit  /  Apps  
File Role Description
  Plain text file ViewAppTest.php Class Class source

  Files folder image Files  /  tests  /  Unit  /  Client  
File Role Description
  Plain text file GetTest.php Class Class source
  Plain text file KeyTest.php Class Class source

 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.