PHPackages                             asundust/dcat-wechat-work-push - 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. asundust/dcat-wechat-work-push

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

asundust/dcat-wechat-work-push
==============================

利用企业微信应用消息向微信发送通知(无需公众号，不需要安装企业微信客户端，低成本推送消息解决方案)

1.0.0(3y ago)8222MITPHPPHP &gt;=7.0.0

Since Aug 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/asundust/dcat-wechat-work-push)[ Packagist](https://packagist.org/packages/asundust/dcat-wechat-work-push)[ Docs](https://github.com/asundust/dcat-wechat-work-push)[ RSS](/packages/asundust-dcat-wechat-work-push/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Dcat-Admin 消息推送插件 by 企业微信应用消息
=============================

[](#dcat-admin-消息推送插件-by-企业微信应用消息)

> 无需公众号，不需要安装企业微信客户端，低成本推送消息解决方案

> 貌似现在新建应用必须绑定IP白名单才可以使用，且无法脱离企业微信APP的样子

> 另有 [Laravel-Admin版](https://github.com/asundust/wechat-work-push)

[![StyleCI build status](https://camo.githubusercontent.com/5ef8391ca4198ae0757c0d7eb949d2bc0ea6652ae1a8de70e2e626006b0ac58b/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3338323733393234312f736869656c64)](https://camo.githubusercontent.com/5ef8391ca4198ae0757c0d7eb949d2bc0ea6652ae1a8de70e2e626006b0ac58b/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3338323733393234312f736869656c64)[![Total Downloads](https://camo.githubusercontent.com/0d2818dbf3ff5104e99f8a0aaba54ad76003fbde8148bf2dc88bc5a50c52fe88/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6173756e647573742f646361742d7765636861742d776f726b2d70757368)](https://packagist.org/packages/asundust/dcat-wechat-work-push)[![Latest Stable Version](https://camo.githubusercontent.com/e46fce7ecad56b95357642d868d02b5f1dc2ac581175940738af76a5077ad8d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6173756e647573742f646361742d7765636861742d776f726b2d70757368)](https://packagist.org/packages/asundust/dcat-wechat-work-push)

前言
--

[](#前言)

灵感启发Server酱，这边只是一个简单的实现。

声明
--

[](#声明)

- **目前貌似不再支持在微信中接收新消息且调用接口需要IP白名单,只能在企业微信APP收消息的样子，限制很多，除非是老应用（很早时期申请的并已经设置好相关设置）否则本消息通道体验会变差。**

客户端支持
-----

[](#客户端支持)

- Laravel版

功能介绍
----

[](#功能介绍)

目前版本支持灵活设置

- 支持入参标题、内容、链接、链接标题
- 一个【企业微信应用】的消息可推送【单个账号/全部人员】）
- 【单个账号/全部人员】可设置独立的【企业微信应用】配置

另外

- 目前版本不支持内容文本markdown等格式，仅支持简单文本，后期开发
- 目前版本无日志功能，后期开发

截图
--

[](#截图)

- 能直接在通知里看到消息内容

[![通知效果](https://user-images.githubusercontent.com/6573979/107605606-a4adfb80-6c6e-11eb-9f71-66309bc41c1e.png)](https://user-images.githubusercontent.com/6573979/107605606-a4adfb80-6c6e-11eb-9f71-66309bc41c1e.png)

安装
--

[](#安装)

```
composer require asundust/dcat-wechat-work-push

```

相关说明
----

[](#相关说明)

- 会增加以下菜单菜单

```
企业微信消息推送
└用户配置

```

- `用户配置`的表名默认为`dcat_wechat_work_push_users`，目前不可更改
- 默认中间件组为`web`，目前不可更改
- 目前不支持多语言，后期可以考虑增加

配置
--

[](#配置)

- 由于内容一致，参见 [Laravel-Admin版#配置](https://github.com/asundust/wechat-work-push#%E9%85%8D%E7%BD%AE)

使用
--

[](#使用)

- 默认路由支持`get`和`post`，**记得在`VerifyCsrfToken`里的`except`添加`push/*`**，以便支持`post`接口请求。
- 接口地址为`http://{www.abc.com}/push/{推送密钥}`，标题为`title`不可空，内容为`content`可不传，链接为`url`可不传，链接标题为`url_title`可不传。 示例：`get`地址为`http://{www.abc.com}/push/我是密钥?title=测试标题&content=测试内容&url=https://www.baidu.com&url_title=我是百度的测试链接`
- 传入不合法的`url`可能会导致发送请求超时，不知为何，建议自行测试。

内部调用支持
------

[](#内部调用支持)

- 引用此Trait类`\Asundust\DcatWechatWorkPush\Http\Traits\DcatWechatWorkPushSendMessageTrait`。
- 使用默认配置发送`defaultSend()`，使用自定配置发送`send()`，具体入参看方法。

支持
--

[](#支持)

如果觉得这个项目帮你节约了时间，不妨支持一下呗！

[![alipay](https://user-images.githubusercontent.com/6573979/91679916-2c4df500-eb7c-11ea-98a7-ab740ddda77d.png)](https://user-images.githubusercontent.com/6573979/91679916-2c4df500-eb7c-11ea-98a7-ab740ddda77d.png)[![wechat](https://user-images.githubusercontent.com/6573979/91679913-2b1cc800-eb7c-11ea-8915-eb0eced94aee.png)](https://user-images.githubusercontent.com/6573979/91679913-2b1cc800-eb7c-11ea-8915-eb0eced94aee.png)

License
-------

[](#license)

[The MIT License (MIT)](https://opensource.org/licenses/MIT)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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

Unknown

Total

1

Last Release

1368d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e67add3488f0e0f11e67249f88427417fff5558bbd04e2578386599143d6e53d?d=identicon)[asundust](/maintainers/asundust)

---

Top Contributors

[![asundust](https://avatars.githubusercontent.com/u/6573979?v=4)](https://github.com/asundust "asundust (10 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")

---

Tags

dcat-adminlaravelmessagepushwechatwechat-workweixinpushextensionwechatdcat adminwork

### Embed Badge

![Health badge](/badges/asundust-dcat-wechat-work-push/health.svg)

```
[![Health](https://phpackages.com/badges/asundust-dcat-wechat-work-push/health.svg)](https://phpackages.com/packages/asundust-dcat-wechat-work-push)
```

###  Alternatives

[sparkinzy/dcat-marketplace

Dcat扩展市场

381.3k](/packages/sparkinzy-dcat-marketplace)[abovesky/dcat-media-player

Dcat Admin 音视频预览扩展

202.3k](/packages/abovesky-dcat-media-player)

PHPackages © 2026

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