Download the PHP package lelush/laravel-apn-notification-channel without Composer
On this page you can find all versions of the php package lelush/laravel-apn-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lelush/laravel-apn-notification-channel
More information about lelush/laravel-apn-notification-channel
Files in lelush/laravel-apn-notification-channel
Package laravel-apn-notification-channel
Short Description Apple Push Notification Service (APNs) notifications channel for Laravel 5.3+ using the new APNs HTTP/2 protocol with token-based (JWT with p8 private key)
License MIT
Homepage https://github.com/semyonchetvertnyh/laravel-apn-notification-channel
Informations about the package laravel-apn-notification-channel
APNs (.p8) notifications channel for Laravel 5.8
This package makes it easy to send notifications with Laravel 5.8 to iOS using the new APNs HTTP/2 protocol with token-based (JWT with p8 private key).
Contents
- Features
- Requirements
- Installation
- Setting up the APN service
- Usage
- Available Message methods
- TODO
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Features
- [X] Uses new Apple APNs HTTP/2 connection
- [X] Supports JWT-based authentication
- [X] Supports new iOS 10 features such as Collapse IDs, Subtitles and Mutable Notifications
- [X] Uses concurrent requests to APNs
- [X] Tested and working in APNs production environment
- [ ] Supports Certificate-based authentication
Requirements
- PHP >= 7.0
- lib-curl >= 7.46.0 (with http/2 support enabled)
- lib-openssl >= 1.0.2e
Installation
Install this package with Composer:
If you're installing the package in Laravel 5.4 or lower, you must import the service provider:
Setting up the APN service
Add the credentials to your config/broadcasting.php
:
Usage
Now you can use the channel in your via()
method inside the notification:
In your notifiable
model, make sure to include a routeNotificationForApn()
method, which return one or an array of device tokens.
Available Message methods
title($str)
subtitle($str)
body($str)
badge($int)
sound($str)
category($str)
custom($key, $value)
setCustom($array)
titleLocKey($str)
titleLocArgs($array)
actionLocKey($str)
setLocKey($str)
setLocArgs($array)
launchImage($str)
contentAvailability($bool)
mutableContent($bool)
threadId($str)
TODO
- [X] Fix Travis CI
- [ ] Fix Scrutinizer CI Code Coverage
- [ ] Add tests
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Semyon Chetvertnyh
- Arthur Edamov
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-apn-notification-channel with dependencies
edamov/pushok Version ^0.4.3
illuminate/notifications Version ~5.3|~5.4|~5.5|~5.6|~5.7|~5.8
illuminate/support Version ~5.1|~5.2|~5.3|~5.4|~5.5|~5.6|~5.7|~5.8