Download the PHP package nhiepphong/laravel-push-notification without Composer
On this page you can find all versions of the php package nhiepphong/laravel-push-notification. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nhiepphong/laravel-push-notification
More information about nhiepphong/laravel-push-notification
Files in nhiepphong/laravel-push-notification
Package laravel-push-notification
Short Description Laravel 5 Package for sending push notifications to Android and iOS devices. Same as witty's with added support for Laravel 5.2, 5.3, 5.4, 5.5
License MIT
Informations about the package laravel-push-notification
Laravel Push Notification v1.0.1
Based on https://github.com/davibennun/laravel-push-notification forked from https://github.com/larkinwhitaker/laravel-push-notification
Added support for Laravel 5.2 => 5.5.*.
Installation
Installing the package
Register the PushNotification service provider by adding it to the providers array in the config/app.php
file.
Alias the PushNotification facade by adding it to the aliases array in the config/app.php
file.
Configuration
Copy the config file into your project by running
This will generate a config file like this
Where all first level keys corresponds to an service configuration, each service has its own properties, android for instance have apiKey
and IOS uses certificate
and passPhrase
. You can set as many services configurations as you want, one for each app. A directory with the name 'ios-push-notification-certificates' will be added to the config folder for you to store both development and production certificates.
Dont forget to set service
key to identify iOS 'service'=>'apns'
and Android 'service'=>'gcm'
Usage
Where app argument appNameIOS
refers to defined service in config file.
To multiple devices and optioned message:
This package is wrapps [Notification Package] and adds some flavor to it.
#### Usage advice
This package should be used with [Laravel Queues], so pushes dont blocks the user and are processed in the background, meaning a better flow.
[Laravel Queues]:http://laravel.com/docs/queues
All versions of laravel-push-notification with dependencies
illuminate/support Version 5.1.* | 5.2.* | 5.3.* | 5.4.* | 5.5.*
sly/notification-pusher Version 2.x