PHPackages                             echoyii/weixinapi - 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. echoyii/weixinapi

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

echoyii/weixinapi
=================

weixinapi class

v1.0.0(6y ago)25Apache-2.0PHPPHP &gt;=5.4.0

Since Mar 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/echoyii/weixinapi)[ Packagist](https://packagist.org/packages/echoyii/weixinapi)[ Docs](https://github.com/echoyii/weixinapi)[ RSS](/packages/echoyii-weixinapi/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

weixinapi
=========

[](#weixinapi)

微信api主要用于微信公众号的接口调用，如创建公众号菜单，模板消息，创建二维码 #用法示例 1)eg: use echoyii\\weixinapi; $config = \[ 'appid' =&gt; 'wxc2c6b51a8030a6ab', 'token' =&gt; '27057a36f7e711e2841d00163e122bbb', 'secret' =&gt; '30daf3af06d782d227f37f8a193638b2' \]; //测试 $wxapi = weixinapi::getInstance($config); $menu\_info = $wxapi-&gt;getMenu(); var\_dump($menu\_info); exit();

2)eg: use echoyii\\weixinapi;

$config\[1\] = \[ 'appid' =&gt; 'wxc2c6b51a8030a6ab', 'token' =&gt; '27057a36f7e711e2841d00163e122bbb', 'secret' =&gt; '30daf3af06d782d227f37f8a193638b2', \];

//测试 $wxapi = weixinapi::getInstance($config); $params = \[\];//模板消息参数 $menu\_info = $wxapi-&gt;sendTemplateMsg($params); var\_dump($menu\_info); exit();

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

2232d ago

### Community

Maintainers

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

---

Top Contributors

[![echoyii](https://avatars.githubusercontent.com/u/31029398?v=4)](https://github.com/echoyii "echoyii (7 commits)")

---

Tags

libraryweixin

### Embed Badge

![Health badge](/badges/echoyii-weixinapi/health.svg)

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

###  Alternatives

[league/iso3166

ISO 3166-1 PHP Library

69536.3M116](/packages/league-iso3166)[league/statsd

A simple library for working with StatsD in PHP.

3514.3M12](/packages/league-statsd)[payum/iso4217

ISO 4217 PHP Library

16312.1M5](/packages/payum-iso4217)[lambdish/phunctional

λ PHP functional library

3612.0M23](/packages/lambdish-phunctional)[dekor/php-array-table

PHP Library for printing associative arrays as text table (similar to mysql terminal console)

296.6M2](/packages/dekor-php-array-table)

PHPackages © 2026

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