承接 orinoco/wechat-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

orinoco/wechat-bundle

Composer 安装命令:

composer require orinoco/wechat-bundle

包简介

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

README 文档

README

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

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

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 / 用法

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')
<!-- inject it into other services -->
<!-- 注入到需要使用的服务类中 -->
<service id="..." class="..." public="true">
    <argument>...</argument>
    <argument type="service" id="orinoco_wechat.application.payment" />
    <tag name="..." />
</service>

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 / 成产环境

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 / 参考

Please refer to the EasyWeChat documentation for more details.

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

https://www.easywechat.com/docs/master

orinoco/wechat-bundle 适用场景与选型建议

orinoco/wechat-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 01 月 26 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「symfony」 「sdk」 「wechat」 「weixin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 orinoco/wechat-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 orinoco/wechat-bundle 我们能提供哪些服务?
定制开发 / 二次开发

基于 orinoco/wechat-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-26