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

ActiveLibrary[API Development](/categories/api)

pkg6/wework-finance
===================

WeWorkFinanceSDK(https://developer.work.weixin.qq.com/document/path/91774)

v1.0.0(1y ago)81771MITPHPPHP &gt;=7.4

Since Jan 5Pushed 1y agoCompare

[ Source](https://github.com/pkg6/wxwork-finance.php)[ Packagist](https://packagist.org/packages/pkg6/wework-finance)[ RSS](/packages/pkg6-wework-finance/feed)WikiDiscussions develop Synced 1mo ago

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

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

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

要求
--

[](#要求)

- 需要PHP扩展 ext-wxwork\_finance\_sdk 或者 ext-ffi，二选一
- ext-ffi PHP编译安装时 `—with-ffi`
- 容器 `docker pull zhiqiangwang/php:7.4-cli-wxwork-finance` &amp;&amp; `docker pull zhiqiangwang/php:7.4-fpm-wxwork-finance`
- ext-wxwork\_finance\_sdk 安装详见:

安装
--

[](#安装)

```
composer require pkg6/wework-finance

```

使用
--

[](#使用)

```
## 企业配置
$corpConfig = [
    'corpid'       => "foo",
    'secret'       => "foo",
    'private_keys' => [
        "v1" => "foo",
    ],
];
## 包配置
$srcConfig = [
    'default'   => 'ext',
    'providers' => [
        'ext' => \Pkg6\WeWorkFinance\Provider\PHPExtProvider::class,
        'ffi' => \Pkg6\WeWorkFinance\Provider\FFIProvider::class,
    ],
];

## 1、实例化
$sdk = new \Pkg6\WeWorkFinance\SDK($corpConfig, $srcConfig);

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

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

## 获取解密之后的聊天记录
$medium = $sdk->getDecryptChatData(int $seq, int $limit, int $retry = 0)

```

感谢与相关链接
=======

[](#感谢与相关链接)

-
-

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

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

Total

3

Last Release

614d ago

Major Versions

0.2.0 → v1.0.02024-09-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/28b119a234a9963e2266b2b493c037b1d7f01d3e17a06a3ffe94481549efa47b?d=identicon)[1751212020](/maintainers/1751212020)

---

Top Contributors

[![chihqiang](https://avatars.githubusercontent.com/u/40115555?v=4)](https://github.com/chihqiang "chihqiang (3 commits)")

---

Tags

phpweworkwework finance SDK

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

PHPackages © 2026

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