Download the PHP package pushmix/laravel-web-notification without Composer
On this page you can find all versions of the php package pushmix/laravel-web-notification. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pushmix/laravel-web-notification
More information about pushmix/laravel-web-notification
Files in pushmix/laravel-web-notification
Package laravel-web-notification
Short Description Pushmix Notification Driver for Laravel
License MIT
Homepage https://github.com/pushmix/laravel-web-notification
Informations about the package laravel-web-notification
Pushmix Notifications Driver for Laravel 6
About
This package makes it easy to send Pushmix notifications with Laravel 6
Contents
- Setting up your Pushmix account
- Installation
- Configuration
- Displaying Opt In Prompt
- Usage
- Available Message methods
- Changelog
- Testing
- Issues
- Security Vulnerabilities
- Contributing
- Credits
- License
Setting up your Pushmix account
If you haven't already, sign up for a free account on pushmix.co.uk.
Create new subscription for your website and choose preferred integration method. Build your subscribers audience via displaying an Opt-In Prompt asking users for permission to send them push notifications.
Installation
You can install the package via composer:
If you're installing the package in Laravel 5.4 or lower, you must import the service provider:
Configuration
Publish package config and view files:
Add your Subscription ID into .env
file:
Displaying Opt In Prompt
To display Opt-In Prompt you will need to include block of JavaScript into your template using Blade @include
directive.
Alternatively you can copy and paste content of vendor.pushmix.optin
into template.
Usage
Now you can use the channel in your via()
method inside the notification:
The notifications will be sent to the audience, which subscribed via Opt-In Prompt displayed on your website.
Using the Notification::route
method, you can specify which subscribers group you are targeting.
All available methods
title('')
: Accepts a string value for the title, required*body('')
: Accepts a string value for the notification body,required*-
url('')
: Accepts an url for the notification click event,required* button('', '')
: Accepts string value for button title and an url for the notification click event. Max 2 buttons can be attached.icon('')
: Accepts an url for the icon.priority('')
: Acceptshigh
ornormal
strings.ttl('')
: Accepts an integer, notification life span in seconds,must be from 0 to 2,419,200icon('')
: Accepts an url for the icon.badge('')
: Accepts an url for the badge.image('')
: Accepts an url for the large image.
Testing
Navigate into the package folder vendor/pushmix/laravel-web-notification
and issue following command:
Issues
If you come across any issues please report them here.
Security Vulnerabilities
If you discover a security vulnerability please send an e-mail to [email protected].
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-web-notification with dependencies
guzzlehttp/guzzle Version ^6.3@dev
illuminate/notifications Version 6.*
illuminate/support Version 6.*