{"id":19621566,"url":"https://github.com/pkg6/wxwork-finance.php","last_synced_at":"2025-04-28T03:32:21.866Z","repository":{"id":215462776,"uuid":"738575765","full_name":"pkg6/wxwork-finance.php","owner":"pkg6","description":"WeWorkFinanceSDK","archived":false,"fork":false,"pushed_at":"2024-12-26T09:05:39.000Z","size":7471,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2025-04-05T06:11:14.935Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://developer.work.weixin.qq.com/document/path/91774","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pkg6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-03T14:46:43.000Z","updated_at":"2025-03-07T02:19:19.000Z","dependencies_parsed_at":"2024-09-11T19:41:08.550Z","dependency_job_id":"60212274-2b25-4905-9406-90ce48b1cedc","html_url":"https://github.com/pkg6/wxwork-finance.php","commit_stats":null,"previous_names":["pkg6/wxwork-finance.php"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg6%2Fwxwork-finance.php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg6%2Fwxwork-finance.php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg6%2Fwxwork-finance.php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg6%2Fwxwork-finance.php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkg6","download_url":"https://codeload.github.com/pkg6/wxwork-finance.php/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251246280,"owners_count":21558762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T11:23:33.866Z","updated_at":"2025-04-28T03:32:18.874Z","avatar_url":"https://github.com/pkg6.png","language":"PHP","readme":"# 微信会话内容存档\n\n## 要求\n* 需要PHP扩展 ext-wxwork_finance_sdk 或者 ext-ffi，二选一\n* ext-ffi PHP编译安装时 `—with-ffi`\n* 容器 `docker pull zhiqiangwang/php:7.4-cli-wxwork-finance` \u0026\u0026 `docker pull zhiqiangwang/php:7.4-fpm-wxwork-finance`\n* ext-wxwork_finance_sdk 安装详见: https://github.com/pangdahua/php7-wxwork-finance-sdk\n\n## 安装\n~~~\ncomposer require pkg6/wework-finance\n~~~\n\n## 使用\n\n```\n## 企业配置\n$corpConfig = [\n    'corpid'       =\u003e \"foo\",\n    'secret'       =\u003e \"foo\",\n    'private_keys' =\u003e [\n        \"v1\" =\u003e \"foo\",\n    ],\n];\n## 包配置\n$srcConfig = [\n    'default'   =\u003e 'ext',\n    'providers' =\u003e [\n        'ext' =\u003e \\Pkg6\\WeWorkFinance\\Provider\\PHPExtProvider::class,\n        'ffi' =\u003e \\Pkg6\\WeWorkFinance\\Provider\\FFIProvider::class,\n    ],\n];\n\n## 1、实例化\n$sdk = new \\Pkg6\\WeWorkFinance\\SDK($corpConfig, $srcConfig);\n\n## 获取聊天记录\n$chatData = $sdk-\u003egetDecryptChatData($seq, $limit);\n\n## 解析media\n$medium = $sdk-\u003egetMediaData($sdkFileId, $ext)\n\n## 获取解密之后的聊天记录\n$medium = $sdk-\u003egetDecryptChatData(int $seq, int $limit, int $retry = 0)\n```\n\n# 感谢与相关链接\n\n- https://github.com/pangdahua/php7-wxwork-finance-sdk\n- https://developer.work.weixin.qq.com/document/path/91774\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkg6%2Fwxwork-finance.php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkg6%2Fwxwork-finance.php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkg6%2Fwxwork-finance.php/lists"}