Download the PHP package byrontudhope/pushnotificationlaravel without Composer
On this page you can find all versions of the php package byrontudhope/pushnotificationlaravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download byrontudhope/pushnotificationlaravel
More information about byrontudhope/pushnotificationlaravel
Files in byrontudhope/pushnotificationlaravel
Package pushnotificationlaravel
Short Description Laravel 5 Package for sending push notifications to Android and iOS devices
License MIT
Informations about the package pushnotificationlaravel
laravel-push-notification
Based off of https://github.com/davibennun/laravel-push-notification with support for Laravel 5 and 5.1.
Installation
Update your composer.json
file to include this package as a dependency
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
All versions of pushnotificationlaravel with dependencies
illuminate/support Version 5.0.* | 5.1.* | 5.2.* | 5.3.* | 5.4.*
sly/notification-pusher Version 2.x