PHPackages                             ywmelo/template-message - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. ywmelo/template-message

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

ywmelo/template-message
=======================

Wechat template message

v1.1(5y ago)42.2kMITPHPPHP &gt;=7.0.0

Since Sep 3Pushed 5y ago2 watchersCompare

[ Source](https://github.com/Yw-melo/wechat-template-message)[ Packagist](https://packagist.org/packages/ywmelo/template-message)[ RSS](/packages/ywmelo-template-message/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

EasyWechat template message notification for Laravel
====================================================

[](#easywechat-template-message-notification-for-laravel)

使用 EasyWechat 的模板消息功能发送 Laravel 消息通知。

安装
--

[](#安装)

```
composer require ywmelo/template-message
```

使用
--

[](#使用)

### 创建通知：

[](#创建通知)

```
namespace App\Notifications;

use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Ywmelo\TemplateMessage\Message\WechatTemplateMessage;
use Ywmelo\TemplateMessage\Channels\WechatTemplateMessageChannel;

class WechatTemplateMessageNotification extends Notification
{
    use Queueable;

    public function __construct($formId)
    {
        $this->formId = $formId;
    }

    public function via($notifiable)
    {
        return [WechatTemplateMessageChannel::class];
    }

    public function toWechatTemplateMessage($notifiable)
    {
        return (new WechatTemplateMessage)
            ->setTemplateId('template_id')
            ->setPage('page')
            ->setFormId($this->formId)
            ->setData([
                'keyword1' => 'keyword1',
                'keyword2' => 'keyword2',
                'keyword3' => 'keyword3',
                'keyword4' => 'keyword4',
            ]);
    }
}
```

### 发送

[](#发送)

```
$user->notify(new WechatTemplateMessageNotification($formId));
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~610 days

Total

2

Last Release

1830d ago

PHP version history (2 changes)v1.0PHP ^7.1.3

v1.1PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/197b823f5488d38e8d4439c5046c4ef6ead7efcf6938dd365befb60af8cef30d?d=identicon)[Melo Yang](/maintainers/Melo%20Yang)

---

Top Contributors

[![Yw-melo](https://avatars.githubusercontent.com/u/33000435?v=4)](https://github.com/Yw-melo "Yw-melo (7 commits)")

---

Tags

laravelnotificationswechat

### Embed Badge

![Health badge](/badges/ywmelo-template-message/health.svg)

```
[![Health](https://phpackages.com/badges/ywmelo-template-message/health.svg)](https://phpackages.com/packages/ywmelo-template-message)
```

###  Alternatives

[liran-co/laravel-notification-subscriptions

Notification subscription management.

128239.2k1](/packages/liran-co-laravel-notification-subscriptions)[coreproc/nova-notification-feed

A Laravel Nova package that adds a notification feed in your Nova app.

10149.1k](/packages/coreproc-nova-notification-feed)[matviib/notifier

NO LIBRARIES socket per page bridge for your Laravel application.

621.2k](/packages/matviib-notifier)[sarfraznawaz2005/laravel-sse

Laravel package to provide Server Sent Events functionality for your app.

474.6k](/packages/sarfraznawaz2005-laravel-sse)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
