PHPackages                             jongates/wechat\_publicer - 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. jongates/wechat\_publicer

ActiveLibrary

jongates/wechat\_publicer
=========================

wechat\_publicer

1.0.0(1y ago)120MITPHPPHP &gt;=8.0

Since Dec 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/JonGates/wechat_publicer)[ Packagist](https://packagist.org/packages/jongates/wechat_publicer)[ RSS](/packages/jongates-wechat-publicer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

wechat\_publicer
================

[](#wechat_publicer)

wechat\_publicer

注意事项
----

[](#注意事项)

使用说明：

1. 安装 composer require jongates/wechat\_publicer
2. 制作模板 模板文件放在templates\_gzh目录下，文件名对应type，文件内容为html模板，模板中使用{key}表示变量，key为模板信息中的key，详见模板配置说明 模板文件示例，miniprogram.html
3. 引入 use Jongates\\WechatPublicer\\Publisher;
4. 初始化 $publisher = new Publisher($config);
5. 发布 $publisher-&gt;publishArticle($data);
6. 分开发布 $publisher-&gt;generateDraft($data); $publisher-&gt;saveDraft(); $publisher-&gt;publishDraft();

模板配置说明： 引用参考：example.php 模板参考：templates\_gzh/miniprogram.html

$config = \[ 'app\_id' =&gt; 'xxxxxxxxxxxxxxxx', // 公众号appid 'app\_secret' =&gt; 'xxxxxxxxxxxxxxxxxxxxxxx', // 公众号appsecret 'nickname' =&gt; 'app名称', // 公众号名称 'cache\_path' =&gt; '../../temp/gzh', // 缓存路径 'templates\_path' =&gt; '../../templates\_gzh', // 模板路径 'default\_thumb\_media\_id' =&gt; '4uyfP5XSWLkLfwA93nlMsfAWFXcuixT1bnLry3da6kyMSPL9S4C-m9i4sekp1zcb', // 全局默认封面图片，最后使用 \];

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance40

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.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

508d ago

### Community

Maintainers

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

---

Top Contributors

[![bibinet](https://avatars.githubusercontent.com/u/3130164?v=4)](https://github.com/bibinet "bibinet (14 commits)")[![JonGates](https://avatars.githubusercontent.com/u/6045974?v=4)](https://github.com/JonGates "JonGates (1 commits)")

### Embed Badge

![Health badge](/badges/jongates-wechat-publicer/health.svg)

```
[![Health](https://phpackages.com/badges/jongates-wechat-publicer/health.svg)](https://phpackages.com/packages/jongates-wechat-publicer)
```

PHPackages © 2026

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