Download the PHP package asachanfbd/laravel-push-notification without Composer
On this page you can find all versions of the php package asachanfbd/laravel-push-notification. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download asachanfbd/laravel-push-notification
More information about asachanfbd/laravel-push-notification
Files in asachanfbd/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
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.*.
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
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.
All versions of laravel-push-notification with dependencies
illuminate/support Version 5.1.* | 5.2.*
sly/notification-pusher Version 2.x