Download the PHP package liuwave/think-notification-easysms-channel without Composer
On this page you can find all versions of the php package liuwave/think-notification-easysms-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download liuwave/think-notification-easysms-channel
More information about liuwave/think-notification-easysms-channel
Files in liuwave/think-notification-easysms-channel
Download liuwave/think-notification-easysms-channel
More information about liuwave/think-notification-easysms-channel
Files in liuwave/think-notification-easysms-channel
Vendor liuwave
Package think-notification-easysms-channel
Short Description EasySms Notification channel For ThinkPHP6
License Apache-2.0
Package think-notification-easysms-channel
Short Description EasySms Notification channel For ThinkPHP6
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package think-notification-easysms-channel
EasySms Notification channel For ThinkPHP6
使用 overtrue/easy-sms 发送 ThinkPHP6 消息通知。
安装
配置
1、安装插件会自动生成 config/easysms.php
文件,若未生成,可以执行以下命令:
2、在config/easysms.php
中修改配置。
使用
1、创建通知
通知类,需要实现channels
和toEasySms
方法
发送短信通知
继承创建手机号码类,需要插入trait yunwuxin\notification\Notifiable
,这里直接继承\Overtrue\EasySms\PhoneNumber
,并实现prepareEasySms
方法。
执行发送短信
All versions of think-notification-easysms-channel with dependencies
PHP Build Version
Package Version
Requires
overtrue/easy-sms Version
^1.1
topthink/framework Version ^6.0
yunwuxin/think-notification Version ^3.0
topthink/framework Version ^6.0
yunwuxin/think-notification Version ^3.0
The package liuwave/think-notification-easysms-channel contains the following files
Loading the files please wait ....