PHPackages                             qxmcode/wework-finance-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. qxmcode/wework-finance-sdk

ActiveLibrary[API Development](/categories/api)

qxmcode/wework-finance-sdk
==========================

WeWorkFinanceSDK Of Qxmcode

v0.1.0(4y ago)163PHPPHP &gt;=7.3

Since Apr 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/qxmcode/wework-finance-sdk)[ Packagist](https://packagist.org/packages/qxmcode/wework-finance-sdk)[ RSS](/packages/qxmcode-wework-finance-sdk/feed)WikiDiscussions master Synced 1mo ago

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

微信会话内容存档
========

[](#微信会话内容存档)

要求
--

[](#要求)

- 需要PHP扩展 ext-wxwork\_finance\_sdk 或者 ext-ffi，二选一
- ext-wxwork\_finance\_sdk 安装详见:
- ext-ffi PHP编译安装时 `—with-ffi`

配置
--

[](#配置)

- hyperf框架使用`vendor:publish`发布资源（`publish/wx_finance_sdk.php`）
- 非hyperf框架可以在初始化实例时传入配置

使用
--

[](#使用)

```
## 企业配置
$corpConfig = [
    'corpid'       => 'xxxx',
    'secret'       => 'xxxx',
    'private_keys' => [
        '密钥版本号' => '私钥',
    ],
];
## 包配置
$srcConfig = [
    'default'   => 'php-ext',
    'providers' => [
        'php-ext' => [
            'driver' => \Qxmcode\WeWorkFinanceSDK\Provider\PHPExtProvider::class,
        ],
        'php-ffi' => [
            'driver' => \Qxmcode\WeWorkFinanceSDK\Provider\FFIProvider::class,
        ],
    ],
];

## 1、实例化
$sdk = Qxmcode\WeWorkFinanceSDK\WxFinanceSDK::init($corpConfig, $srcConfig);

## 获取聊天记录
$chatData = $sdk->getDecryptChatData($seq, $limit);

## 解析media
$medium = $sdk->getMediaData($sdkFileId, $ext)

```

测试
--

[](#测试)

- cp ./tests/config.php.example ./tests/config.php
- 修改 ./tests/config.php
- composer test

FFI 预加载
-------

[](#ffi-预加载)

- 可自己行修改 php-ffi.driver，独立C的头文件到 `opcache.preload`

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1489d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9bbee8372d741dae9626b9605e2e00748c470ac8a47fc157afb2f324b71fd090?d=identicon)[qxmcode](/maintainers/qxmcode)

---

Top Contributors

[![yqhcode](https://avatars.githubusercontent.com/u/94607849?v=4)](https://github.com/yqhcode "yqhcode (1 commits)")

---

Tags

phphyperfweworkwework finance SDKqxmcode

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/qxmcode-wework-finance-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/qxmcode-wework-finance-sdk/health.svg)](https://phpackages.com/packages/qxmcode-wework-finance-sdk)
```

###  Alternatives

[hyperf/swagger

A swagger library for Hyperf.

19338.7k6](/packages/hyperf-swagger)[hyperf/jet

Jet is a unification model RPC Client, built-in JSON RPC protocol, available to running in ALL PHP environments, including PHP-FPM and Swoole/Hyperf environments.

6119.1k](/packages/hyperf-jet)[kakuilan/hyperf-apihelper

hyperf api swagger helper

443.0k](/packages/kakuilan-hyperf-apihelper)[hyperf/graphql

A GraphQL component for hyperf.

151.0k](/packages/hyperf-graphql)

PHPackages © 2026

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