PHPackages                             easywechat-composer/easywechat-composer - 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. easywechat-composer/easywechat-composer

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

easywechat-composer/easywechat-composer
=======================================

The composer plugin for EasyWeChat

1.4.2(2mo ago)923.2M—5.4%820MITPHPPHP &gt;=7.1CI failing

Since Nov 15Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/mingyoung/easywechat-composer)[ Packagist](https://packagist.org/packages/easywechat-composer/easywechat-composer)[ RSS](/packages/easywechat-composer-easywechat-composer/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (6)Versions (22)Used By (20)

EasyWeChat Composer Plugin
==========================

[](#easywechat-composer-plugin)

 [![Build Status](https://camo.githubusercontent.com/21bec1dd58a676cdee2cb5aa1d6bae08b3609b238ee3b9cbb2d33bd63b19e61a/68747470733a2f2f7472617669732d63692e6f72672f6d696e67796f756e672f656173797765636861742d636f6d706f7365722e737667)](https://travis-ci.org/mingyoung/easywechat-composer) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/078cbc1ccaa3a905a672cbb8e5b252f4bbff9b445e8adfad9f2329681603a744/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d696e67796f756e672f656173797765636861742d636f6d706f7365722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mingyoung/easywechat-composer/?branch=master) [![Latest Stable Version](https://camo.githubusercontent.com/1afb716459ef506e3493c14d5e3370bb43e80705ba0543d23d4d019cd571f1a5/68747470733a2f2f706f7365722e707567782e6f72672f656173797765636861742d636f6d706f7365722f656173797765636861742d636f6d706f7365722f762f737461626c652e737667)](https://packagist.org/packages/easywechat-composer/easywechat-composer) [![Total Downloads](https://camo.githubusercontent.com/c492bb08ab99d1c6a7babeaaefaada11e315df15b2e823ef9c836232a05ad81d/68747470733a2f2f706f7365722e707567782e6f72672f656173797765636861742d636f6d706f7365722f656173797765636861742d636f6d706f7365722f642f746f74616c2e737667)](https://packagist.org/packages/easywechat-composer/easywechat-composer) [![License](https://camo.githubusercontent.com/39b3e1541f8124bed3372fffbc45fbd68c4d2c9a987552f020af4fbfb9297e40/68747470733a2f2f706f7365722e707567782e6f72672f656173797765636861742d636f6d706f7365722f656173797765636861742d636f6d706f7365722f6c6963656e73652e737667)](https://packagist.org/packages/easywechat-composer/easywechat-composer)

Usage
-----

[](#usage)

Set the `type` to be `easywechat-extension` in your package composer.json file:

```
{
    "name": "your/package",
    "type": "easywechat-extension"
}
```

Specify server observer classes in the extra section:

```
{
    "name": "your/package",
    "type": "easywechat-extension",
    "extra": {
        "observers": [
            "Acme\\Observers\\Handler"
        ]
    }
}
```

Examples
--------

[](#examples)

- [easywechat-composer/open-platform-testcase](https://github.com/mingyoung/open-platform-testcase)

Server Delegation
-----------------

[](#server-delegation)

> 目前仅支持 Laravel

1. 在 `config/app.php` 中添加 `EasyWeChatComposer\Laravel\ServiceProvider::class`
2. 在**本地项目**的 `.env` 文件中添加如下配置：

```
EASYWECHAT_DELEGATION=true # false 则不启用
EASYWECHAT_DELEGATION_HOST=https://example.com # 线上域名

```

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance84

Actively maintained with recent releases

Popularity55

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 86.5% 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 ~153 days

Recently: every ~551 days

Total

21

Last Release

80d ago

Major Versions

0.1.4 → 1.0.02018-02-12

PHP version history (2 changes)0.1.0PHP &gt;=7.0

1.4.2PHP &gt;=7.1

### Community

Maintainers

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

---

Top Contributors

[![mingyoung](https://avatars.githubusercontent.com/u/6228858?v=4)](https://github.com/mingyoung "mingyoung (45 commits)")[![jianminLee](https://avatars.githubusercontent.com/u/13827117?v=4)](https://github.com/jianminLee "jianminLee (2 commits)")[![xutl](https://avatars.githubusercontent.com/u/20939388?v=4)](https://github.com/xutl "xutl (2 commits)")[![JasonMann1993](https://avatars.githubusercontent.com/u/28591132?v=4)](https://github.com/JasonMann1993 "JasonMann1993 (1 commits)")[![xiaochong0302](https://avatars.githubusercontent.com/u/1624955?v=4)](https://github.com/xiaochong0302 "xiaochong0302 (1 commits)")[![zingimmick](https://avatars.githubusercontent.com/u/26657141?v=4)](https://github.com/zingimmick "zingimmick (1 commits)")

---

Tags

easywechat

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74798.8M1.0k](/packages/symfony-runtime)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5445.2M564](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M203](/packages/drupal-core-project-message)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

3014.6M26](/packages/vaimo-composer-patches)[sandersander/composer-link

Adds ability to link local packages for development with composer

98457.9k](/packages/sandersander-composer-link)[phpro/grumphp-shim

GrumPHP Phar distribution

294.7M340](/packages/phpro-grumphp-shim)

PHPackages © 2026

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