PHPackages                             easywechat/console - 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. [CLI &amp; Console](/categories/cli)
4. /
5. easywechat/console

ActiveLibrary[CLI &amp; Console](/categories/cli)

easywechat/console
==================

A command line for EasyWeChat Application.

1.0.2(8y ago)2434.2k6[2 issues](https://github.com/EasyWeChat/console/issues)[1 PRs](https://github.com/EasyWeChat/console/pulls)MITPHPPHP &gt;=7.0

Since Jan 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/EasyWeChat/console)[ Packagist](https://packagist.org/packages/easywechat/console)[ RSS](/packages/easywechat-console/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

 EasyWeChat Console Tool
=========================

[](#-easywechat-console-tool-)

A command line for EasyWeChat Application.

Installing
----------

[](#installing)

```
$ composer require easywechat/console -vvv
```

Or install it globally:

```
$ composer global require easywechat/console -vvv
```

Usage
-----

[](#usage)

```
$ ./vendor/bin/easywechat list

# globally install
$ easywechat list
```

### Get payment RSA public key.

[](#get-payment-rsa-public-key)

[https://pay.weixin.qq.com/wiki/doc/api/tools/mch\_pay.php?chapter=24\_7](https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=24_7)

```
$ ./vendor/bin/easywechat payment:rsa_public_key \
    --mch_id=14339221228 \
    --api_key=36YTbDmLgyQ52noqdxgwGiYy \
    --cert_path=/Users/overtrue/www/demo/apiclient_cert.pem \
    --key_path=/Users/overtrue/www/demo/apiclient_key.pem

# Public key of mch_id:14339221228 saved as ./public-14339221228.pem
```

### List, Create, Delete Official Account menu structure.

[](#list-create-delete-official-account-menu-structure)

[https://mp.weixin.qq.com/wiki?t=resource/res\_main&amp;id=mp1421141013](https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141013)
[https://mp.weixin.qq.com/wiki?t=resource/res\_main&amp;id=mp1421141014](https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141014)
[https://mp.weixin.qq.com/wiki?t=resource/res\_main&amp;id=mp1421141015](https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141015)

```
$ ./vendor/bin/easywechat menus:list_menus \
    --app_id=14339221228 \
    --secret=36YTbDmLgyQ52noqdxgwGiYy \
    --token=mytoken \
    --aes_key=0xp26B0rqlKFZPWbr5lQs4SVaugBnFjE0H1xE9rfePX
    --file_output=/Users/overtrue/www/demo/menus.json

# JSON menu structure of the Official Account output in /Users/overtrue/www/demo/menus.json
```

```
$ ./vendor/bin/easywechat menus:create_menus \
    --app_id=14339221228 \
    --secret=36YTbDmLgyQ52noqdxgwGiYy \
    --token=mytoken \
    --aes_key=0xp26B0rqlKFZPWbr5lQs4SVaugBnFjE0H1xE9rfePX
    --file=/Users/overtrue/www/demo/menus.json

# Menu structure of the Official Account created/updated
```

```
$ ./vendor/bin/easywechat menus:delete_menus \
    --app_id=14339221228 \
    --secret=36YTbDmLgyQ52noqdxgwGiYy \
    --token=mytoken \
    --aes_key=0xp26B0rqlKFZPWbr5lQs4SVaugBnFjE0H1xE9rfePX
    --save=/Users/overtrue/www/demo/menus.json

# Menu structure of the Official Account deleted
# JSON menu structure saved as /Users/overtrue/www/demo/menus.json
```

License
-------

[](#license)

MIT

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~41 days

Total

3

Last Release

3016d ago

### Community

Maintainers

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

---

Top Contributors

[![overtrue](https://avatars.githubusercontent.com/u/1472352?v=4)](https://github.com/overtrue "overtrue (6 commits)")[![froger-me](https://avatars.githubusercontent.com/u/3622456?v=4)](https://github.com/froger-me "froger-me (3 commits)")

---

Tags

consoleeasywechat

### Embed Badge

![Health badge](/badges/easywechat-console/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54743.1k4](/packages/jolicode-castor)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[whatsdiff/whatsdiff

See what's changed in your project's dependencies

771.2k](/packages/whatsdiff-whatsdiff)[dagger/dagger

Dagger PHP SDK

261.1k](/packages/dagger-dagger)

PHPackages © 2026

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