PHPackages                             yansongda/laravel-notification-wechat - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. yansongda/laravel-notification-wechat

ActiveLibrary[Templating &amp; Views](/categories/templating)

yansongda/laravel-notification-wechat
=====================================

Laravel Wechat Notifications Driver

v1.2.1(6y ago)831.4k16MITPHPPHP &gt;=7.0CI failing

Since Nov 23Pushed 6y ago3 watchersCompare

[ Source](https://github.com/yansongda/laravel-notification-wechat)[ Packagist](https://packagist.org/packages/yansongda/laravel-notification-wechat)[ RSS](/packages/yansongda-laravel-notification-wechat/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (5)Versions (7)Used By (0)

laravel-notification-wechat
===========================

[](#laravel-notification-wechat)

 [![Latest Stable Version](https://camo.githubusercontent.com/6914e783553658db1dde53bee74be5337046fa01b8329abe56da3f88d3f693f5/68747470733a2f2f706f7365722e707567782e6f72672f79616e736f6e6764612f6c61726176656c2d6e6f74696669636174696f6e2d7765636861742f762f737461626c65)](https://packagist.org/packages/yansongda/laravel-notification-wechat) [![Latest Unstable Version](https://camo.githubusercontent.com/22a1606da6a599fcb4433356feff783407aaffb8e8535d3aef07c7c2e6ab78df/68747470733a2f2f706f7365722e707567782e6f72672f79616e736f6e6764612f6c61726176656c2d6e6f74696669636174696f6e2d7765636861742f762f756e737461626c65)](https://packagist.org/packages/yansongda/laravel-notification-wechat) [![License](https://camo.githubusercontent.com/f07775fa8d4353a6def3ecfec0628be9b11e66b4ceb0b221e6e5e0247084b9f4/68747470733a2f2f706f7365722e707567782e6f72672f79616e736f6e6764612f6c61726176656c2d6e6f74696669636174696f6e2d7765636861742f6c6963656e7365)](https://packagist.org/packages/yansongda/laravel-notification-wechat)

不知道大家有没有基于 laravel 的消息通知开发过微信的模板消息通知，我反正是开发过多次了，以前开发总是写在 app 目录下，然后又一坨都写在自定义的 WechatChannel 里面，看这心里总是不舒服。多次之后，就有了这个……

运行环境
----

[](#运行环境)

- PHP 5.6+
- composer

安装
--

[](#安装)

1. composer
    `composer require yansongda/laravel-notification-wechat`
2. 注册 serviceprovider （ &lt; laravel 5.5 ）
    `Yansongda\LaravelNotificationWechat\WechatServiceProvider::class`

使用
--

[](#使用)

### 例子

[](#例子)

```
