PHPackages                             yisonli/wxmsg - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yisonli/wxmsg

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yisonli/wxmsg
=============

An Editor For WeChat Customer Service Messages.

1.1(6y ago)83963MITHTMLPHP &gt;=7.0.0CI failing

Since Dec 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/yisonli/wxmsg)[ Packagist](https://packagist.org/packages/yisonli/wxmsg)[ Docs](https://github.com/yisonli/wxmsg)[ RSS](/packages/yisonli-wxmsg/feed)WikiDiscussions master Synced 6d ago

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

An editor for WeChat Custom Service Message.
============================================

[](#an-editor-for-wechat-custom-service-message)

This is a `laravel-admin` extension that can edit WeChat Custom Service Message with form input.

Screenshot
----------

[](#screenshot)

[![](wxmsg.jpg)](wxmsg.jpg)

Installation
------------

[](#installation)

First, install dependencies:

```
composer require yisonli/wxmsg
```

Usage
-----

[](#usage)

Use it in the form form:

```
$form->wxmsg('content');
```

Advance Usage :

- function `relateTo` : Diy message type field.
- function `selectMedia` : Query mediaID list by ajax api.

```
$form->select('app_id', '公众号')->options($app_list)->rules('required');
$form->select('msgtype', '回复消息类型')->options([
        'text' => '文本',
        'image' => '图片',
        'news' => '图文',
        'link' => '图文(小程序)',
        'miniprogrampage' => '小程序卡片',
    ])->rules('required');
$form->wxmsg('content', '')->relateTo('msgtype', 'app_id')->selectMedia('/wechat/reply/medias');
```

> While using selectMedia, you must add the Controller Function for `/wechat/reply/medias` first.

1. Add controller function:

```
public function medias(Request $request)
{
    $app_id = $request->get('a');
    $name = $request->get('q');
    $type = $request->get('t');

    $result = WechatMedia::where('app_id', '=', $app_id)
        ->where('type', '=', $type)
        ->where('name', 'like', "%$name%")
        ->paginate(null, ['media_id', 'name', 'url']);

    foreach ($result as $key => $value) {
        $temp = [
            'id' => $value['media_id'],
            'text' => ' ' . $value['name'],
        ];
        $result[$key] = $temp;
    }

    return $result;
}
```

2. Add api to route file:

```
$router->get('/wechat/reply/medias', 'Wechat\ReplyController@medias');
```

Support Message Types
---------------------

[](#support-message-types)

- text
- image
- news
- link
- miniprogrampage

To be continue
--------------

[](#to-be-continue)

- Support other message types. (exp: video, music, msgmenu...)
- Beautify the operation interface.

License
-------

[](#license)

Licensed under [The MIT License](LICENSE).

About Me
--------

[](#about-me)

name: yison.li
blog:
github:

[![](https://camo.githubusercontent.com/9189daa8c40de78a9ec2ff983bf17eb59b57eac55442fa269e50c2e46ee7263a/687474703a2f2f79796565722e636f6d2f6173736574732f696d672f5969736f6e5765636861742e706e67)](https://camo.githubusercontent.com/9189daa8c40de78a9ec2ff983bf17eb59b57eac55442fa269e50c2e46ee7263a/687474703a2f2f79796565722e636f6d2f6173736574732f696d672f5969736f6e5765636861742e706e67)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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 ~18 days

Total

2

Last Release

2335d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12879214?v=4)[yisonli](/maintainers/yisonli)[@yisonli](https://github.com/yisonli)

---

Top Contributors

[![yisonli](https://avatars.githubusercontent.com/u/12879214?v=4)](https://github.com/yisonli "yisonli (3 commits)")

---

Tags

extensionlaravel-admin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yisonli-wxmsg/health.svg)

```
[![Health](https://phpackages.com/badges/yisonli-wxmsg/health.svg)](https://phpackages.com/packages/yisonli-wxmsg)
```

###  Alternatives

[laravel-admin-ext/chartjs

Use Chartjs in laravel-admin

102180.6k1](/packages/laravel-admin-ext-chartjs)[laravel-admin-ext/china-distpicker

Distpicker extension for laravel-admin

13443.9k](/packages/laravel-admin-ext-china-distpicker)[laravel-admin-ext/grid-sortable

Sort the grid data by drag and drop rows

42119.3k](/packages/laravel-admin-ext-grid-sortable)[jxlwqq/json-editor

JSON Editor for Laravel-admin

32101.8k](/packages/jxlwqq-json-editor)[jxlwqq/env-manager

Env Manager for Laravel-admin

3719.9k](/packages/jxlwqq-env-manager)[jxlwqq/quill

quill editor for laravel-admin

2427.1k](/packages/jxlwqq-quill)

PHPackages © 2026

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