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. [API Development](/categories/api)
4. /
5. jongates/wechat\_publicer

ActiveLibrary[API Development](/categories/api)

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

wechat\_publicer

1.0.0(1y ago)220MITPHPPHP &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 today

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

26

—

LowBetter than 41% of packages

Maintenance38

Infrequent updates — may be unmaintained

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

554d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6045974?v=4)[Jon Gates](/maintainers/JonGates)[@JonGates](https://github.com/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)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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