Download the PHP package huo-zi/laravel-wechat-notification without Composer
On this page you can find all versions of the php package huo-zi/laravel-wechat-notification. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download huo-zi/laravel-wechat-notification
More information about huo-zi/laravel-wechat-notification
Files in huo-zi/laravel-wechat-notification
Download huo-zi/laravel-wechat-notification
More information about huo-zi/laravel-wechat-notification
Files in huo-zi/laravel-wechat-notification
Vendor huo-zi
Package laravel-wechat-notification
Short Description 微信 template message for Laravel Notification
License MIT
Homepage https://github.com/huozi1024/laravel-wechat-notification
Package laravel-wechat-notification
Short Description 微信 template message for Laravel Notification
License MIT
Homepage https://github.com/huozi1024/laravel-wechat-notification
Please rate this library. Is it a good library?
Informations about the package laravel-wechat-notification
laravel-wechat-notification
这是一个laravel框架下基于laravel-wechat使用微信/企微应用消息通知作为notification通道的composer包,使用前请先熟读laravel-消息通知
目前已支持:
- 公众号模板消息
- 小程序模板消息
- 开放平台公众号模板消息
- 开放平台小程序模板消息
- 企业微信消息
- 企业微信开放平台消息
使用方式:
0. 添加composer包:
1. 在继承了notification
的通知类中可以使用如下方法:
-
设置发送指定频道:
-
使用公众号发送模板消息:
-
使用小程序发送模板消息:
-
使用开放平台公众号发送模板消息:
-
使用开放平台小程序发送模板消息:
-
使用企业微信发送消息:
- 使用开放平台企业微信发送消息:
2. 在使用了triat
Notifiable
的模型里增加获取对应openid/userid
的方法:
可以参考官方文档里发送邮件通知时自定义收件人
-
获取公众号
openid
-
获取小程序
openid
-
获取开放平台公众号
openid
-
获取开放平台小程序
openid
-
获取企业微信
userid
- 获取开放平台企业微信
userid
3. 可参考官方文档:发送通知
使用Notifiable
特性的notify
方法可以给用户实例发送通知:
使用Notification
facade 给多个可接收通知的实体发送通知
License
Licensed under The MIT License (MIT).
All versions of laravel-wechat-notification with dependencies
PHP Build Version
Package Version
The package huo-zi/laravel-wechat-notification contains the following files
Loading the files please wait ....