Download the PHP package foolkaka/laravel-notification-dayu without Composer
On this page you can find all versions of the php package foolkaka/laravel-notification-dayu. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download foolkaka/laravel-notification-dayu
More information about foolkaka/laravel-notification-dayu
Files in foolkaka/laravel-notification-dayu
Package laravel-notification-dayu
Short Description Alibaba Dayu SMS Channel for Laravel 5.3
License MIT
Homepage https://www.alidayu.com/
Informations about the package laravel-notification-dayu
Alibaba Dayu SMS notifications channel for Laravel 5.4
This package makes it easy to send Dayu Sms notifications with Laravel 5.4.
Contents
- Installation
- Setting up your Dayu account
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- License
Installation
You can install the package via composer:
You must install the service provider:
Setting up your Dayu account
Add your Dayu Account App Key, App Secret, Sms Template Code (optional), Sign Name as sms_from(optional) to your config/services.php
:
Usage
Now you can use the channel in your via()
method inside the notification:
In order to let your Notification know which phone number you are sending to, add the routeNotificationForDayusms
method to your Notifiable model e.g your User Model
Available Message methods
SmsMessage
from('')
: Accepts a sign name to use as the notification sender.content('')
: Accepts a json string value for the notification body.content([])
: Accepts a array value for the notification body.type('')
: Accepts a string value for sms type.template('')
: Accepts a string value for sms template.extend('')
: Accepts a string value for sms callback using.
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.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-notification-dayu with dependencies
huami-cloud/taobao-php-sdk Version 1.0.*
illuminate/notifications Version 5.4.*
illuminate/support Version 5.1.*|5.2.*|5.3.*|5.4.*