frankyso / laravel-onepush
OneSignal API Wrapper for Private Project
v0.1.2-beta
2020-02-12 10:53 UTC
Requires
- php: >=7.2.0
- berkayk/onesignal-laravel: ^1.0
Requires (Dev)
- orchestra/testbench: ^4.0
This package is auto-updated.
Last update: 2024-10-07 09:12:19 UTC
README
Custom package for private usage, thanks to berkayk/laravel-onesignal
Installation
The best way to use this package is using composer
composer require frankyso/laravel-onepush
Usage
publish package vendor
php artisan vendor:publish
How to Use
Send Broadcast
use OnePush; OnePush::broadcastNotification("your-message","headings","large-icon-url")->send();
Send Private Message
use OnePush; OnePush::broadcastNotification("id","your-message","headings","large-icon-url")->send();
Send With Banner
use OnePush; OnePush::broadcastNotification("your-message","headings","large-icon-url")->setBanner('https://miro.medium.com/max/2560/1*tqc2Tf1dK9WFJi2YW2rh9Q.png')->send();
With Url Redirect
use OnePush; OnePush::broadcastNotification("your-message","headings","large-icon-url")->setRedirectUrl('https://woobiz.id/')->send();
Authors
- Franky So - Initial work