PHPackages                             orinoco/wechat-bundle - 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. orinoco/wechat-bundle

ActiveSymfony-bundle[API Development](/categories/api)

orinoco/wechat-bundle
=====================

This Symfony bundle provides integration support with the latest EasyWeChat library. (https://www.easywechat.com/)

1.0.2(8y ago)017MITPHP

Since Jan 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Hailong/WechatBundle)[ Packagist](https://packagist.org/packages/orinoco/wechat-bundle)[ Docs](https://github.com/Hailong/WechatBundle)[ RSS](/packages/orinoco-wechat-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

WechatBundle
============

[](#wechatbundle)

This Symfony bundle provides integration support with the latest EasyWeChat library.

这个 Symfony bunble 模块用于把 EasyWeChat 库集成进你的项目。

> #### Why use this bundle / 使用这个 bundle 的好处
>
> [](#why-use-this-bundle--使用这个-bundle-的好处)
>
> You don't need to construct the EasyWeChat API objects explicitly in your code, just inject the service object where you need it and call it.
>
> 你不需要写代码 “new” 那些 EasyWeChat 提供的类，而是直接在需要的地方注入，然后直接使用就行了。

### Usage / 用法

[](#usage--用法)

Once the bundle been successfully loaded into your Symfony application, the following service instances would be ready to use:

在 Bundle 成功加载到你的 Symfony 应用程序之后，以下的5个服务对象就可以使用了：

- orinoco\_wechat.application.official\_account
- orinoco\_wechat.application.payment
- orinoco\_wechat.application.mini\_program
- orinoco\_wechat.application.open\_platform
- orinoco\_wechat.application.work

For example:

例如：

```
// in controller class
// 在 controller 类中使用
$this->get('orinoco_wechat.application.payment')
```

```

    ...

```

### Config / 配置

[](#config--配置)

```
# app/config/config.yml
orinoco_wechat:
    sandbox: true

    log:
        level: debug
        file: /Users/hailong/dev/zshwag/app/../var/logs/wechat.log

    applications:
        official_account:
            app_id: "%wechat_official_account_app_id%"
            secret: "%wechat_official_account_secret%"
            response_type: array

        payment:
            app_id: "%wechat_payment_app_id%"
            mch_id: "%wechat_payment_mch_id%"
            key: "%wechat_payment_key%"
            cert_path: "%wechat_cert_path%"
            key_path: "%wechat_key_path%"
            notify_url: "%wechat_payment_notify_url%"

        mini_program:
            app_id: "%wechat_mini_program_app_id%"
            secret: "%wechat_mini_program_secret%"

        open_platform:
            app_id: "%wechat_open_platform_app_id%"
            secret: "%wechat_open_platform_secret%"
            token: "%wechat_open_platform_token%"
            aes_key: "%wechat_open_platform_aes_key%"

        work:
            corp_id: "%wechat_work_corp_id%"
            agent_id: "%wechat_work_agent_id%"
            secret: "%wechat_work_secret%"
            response_type: array
```

### Production / 成产环境

[](#production--成产环境)

You need to set "sandbox" to `false` and optionally disable the logging when deploy your application to the production environment.

当部署到生产环境的时候，需要把 "sandbox" 设置为 `false`，并且可以关闭日志文件。

```
# app/config/config.yml
orinoco_wechat:
    sandbox: false

    log:
        enabled: false

    # ...
```

### Reference / 参考

[](#reference--参考)

Please refer to the EasyWeChat documentation for more details.

具体的用法请参考 EasyWeChat 的文档

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~1 days

Total

4

Last Release

3027d ago

### Community

Maintainers

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

---

Top Contributors

[![Hailong](https://avatars.githubusercontent.com/u/354776?v=4)](https://github.com/Hailong "Hailong (6 commits)")

---

Tags

symfonywechatweixinsymfonysdkwechatweixin

### Embed Badge

![Health badge](/badges/orinoco-wechat-bundle/health.svg)

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

###  Alternatives

[overtrue/laravel-wechat

微信 SDK for Laravel

3.0k1.8M53](/packages/overtrue-laravel-wechat)[naixiaoxin/think-wechat

EasyWechat For Thnkphp5.1+

27316.1k1](/packages/naixiaoxin-think-wechat)

PHPackages © 2026

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