PHPackages                             ldxterry/wxwork-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. ldxterry/wxwork-finance-sdk

ActiveLibrary

ldxterry/wxwork-finance-sdk
===========================

企业微信会话-sdk

00C

Since Sep 25Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

wxwork\_finance\_sdk\_wrapper
=============================

[](#wxwork_finance_sdk_wrapper)

企业微信-会话内容存档PHP扩展

依赖
--

[](#依赖)

企业微信提供的sdk;

PHP VERSION &gt;= 7.0

- 已支持 php8 感谢 @singee77 pr

openssl扩展

安装步骤及要求
-------

[](#安装步骤及要求)

```
       $INSATLL_PHP_PATH/bin/phpize

       ./configure --with-php-config=$INSTALL_PHP_PATH/php-config --with-wxwork-finance-sdk=$WXWORK_FINANCE_C_SDK_PATH

        make && make install

```

```
php.ini 增加 extension=wxwork_finance_sdk.so

```

API
---

[](#api)

```
    WxworkFinanceSdkExcption::__construct();
```

```
    WxworkFinanceSdk::__construct(string $corpId, string $secret, array $options);
    string $corpId 企业号

    string $secret 秘钥

    array $options = [ // 可选参数
        'proxy_host' => string,
        'proxy_password' => string,
        'timeout' => 10, // 默认超时时间为10s
    ]
```

```
   string WxworkFinanceSdk::getChatData(int $seq, int $limit);
    * 拉取聊天数据
    $seq 起始位置
    $limit 获取条数
```

```
   bool WxworkFinanceSdk::downloadMedia(string $sdkfileid, string $saveTo)
   * 下载资源
   $sdkfileid 资源id。来自chat 中的数据sdkfileid
   $saveTo 本地保存的路径
```

```
   array WxworkFinanceSdk::getMediaData(string $sdkfileid, string $indexBuf='');
   * 拉取静态资源数据，用于可以支持追加模式的三方存储平台
   返回的数据结构体
   $ret = [
       'data' => '' // string 返回的数据
       'nextIndex' => 'ddd' // string 获取下一段数据的句柄
       'isFinished' => int // 1 数据已拉取完毕
   ];

```

- 感谢 @zhanzhaopeng1 PR

```
       string WxworkFinanceSdk::decryptData(string $randomKey, string $encryptStr);
       * 解密数据
       $randomKey 通过openssl解密后的key
       $encryptStr chats 的加密数据
```

已知问题
----

[](#已知问题)

```
  1. free(): invalid pointer
   * 定位intl扩展的冲突问题. php -m |grep intl 建议重新编译php 取消intl扩展

  2. 与swoole的扩展冲突
   * 优先加载wxwork_finance_sdk.so 后加载swoole 【@tisswb】

```

示例
--

[](#示例)

wxwork\_finance\_sdk.php

Alipay

[![](https://github.com/pangdahua/php7-wxwork-finance-sdk/raw/sponsor/imgs/Alipay.png)](https://github.com/pangdahua/php7-wxwork-finance-sdk/blob/sponsor/imgs/Alipay.png)

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f480e37920227d036985e66d63d32983c5f1d0a8c40f423e3b716ea29d71bdb3?d=identicon)[ldxterry](/maintainers/ldxterry)

---

Top Contributors

[![ldxterry](https://avatars.githubusercontent.com/u/29744022?v=4)](https://github.com/ldxterry "ldxterry (2 commits)")

### Embed Badge

![Health badge](/badges/ldxterry-wxwork-finance-sdk/health.svg)

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

PHPackages © 2026

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