PHPackages                             tianye/wechat-open-sdk - 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. tianye/wechat-open-sdk

ActiveLibrary[API Development](/categories/api)

tianye/wechat-open-sdk
======================

wechat-open-sdk

1.2.1(8y ago)010PHPPHP &gt;=5.4

Since Apr 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/tianye/wechat-open-sdk)[ Packagist](https://packagist.org/packages/tianye/wechat-open-sdk)[ RSS](/packages/tianye-wechat-open-sdk/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

WechatOpenSdk
=============

[](#wechatopensdk)

微信开放平台

\####一句话安装: `composer require tianye/wechat-open-sdk -vvv`

接入其他 第三方微信SDK包方案:

```
$config = new Config();
$config->init(['component_app_id' => '第三方平台appId', 'component_app_secret' => '第三方平台appSecret', 'component_app_token' => '第三方平台appToken', 'component_app_key' => '第三方平台appKey']);

$redis_driver = new \WechatOpen\Core\DBDriver\RedisDriver(['host' => '127.0.0.1', 'port' => '6379', 'database' => '2'], 'Cache:WechatOpen:');

$db = new DB($redis_driver);

Core::init($db);

初始化 配置 和 选择缓存驱动 和 数据存储 是 必须的~

```

`src/Authorized.php` 中 `getAuthorizerAccessToken($authorizer_app_id)` 方法 传入 要获取 access\_token 的 服务号 APP\_ID 即可获取 到 acess\_token 已经加入到了缓存中

注意 走 授权的 方法有改变 可以参照: `src/OpenAuth` 中 的 方案 使用方式 `demo/oauth_demo` 中

[开放平台-资源中心-授权流程技术说明](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1453779503&token=&lang=zh_CN)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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 ~49 days

Total

4

Last Release

3220d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18461675?v=4)[Tian Ye](/maintainers/tianye)[@tianye](https://github.com/tianye)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/tianye-wechat-open-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/tianye-wechat-open-sdk/health.svg)](https://phpackages.com/packages/tianye-wechat-open-sdk)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.3k2.2k](/packages/unopim-unopim)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1772.4k4](/packages/aimeos-prisma)[volcengine/volcengine-php-sdk

117.6k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

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