{"id":36388688,"url":"https://github.com/pithyone/think-wechat","last_synced_at":"2026-01-11T15:06:11.780Z","repository":{"id":54223076,"uuid":"98778383","full_name":"pithyone/think-wechat","owner":"pithyone","description":"企业微信SDK for ThinkPHP5","archived":false,"fork":false,"pushed_at":"2021-03-02T16:40:58.000Z","size":11,"stargazers_count":49,"open_issues_count":2,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-02T13:13:35.797Z","etag":null,"topics":["sdk","thinkphp","wechat"],"latest_commit_sha":null,"homepage":"","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/pithyone.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}},"created_at":"2017-07-30T06:00:17.000Z","updated_at":"2024-03-17T10:08:53.000Z","dependencies_parsed_at":"2022-08-13T09:31:07.009Z","dependency_job_id":null,"html_url":"https://github.com/pithyone/think-wechat","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/pithyone/think-wechat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pithyone%2Fthink-wechat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pithyone%2Fthink-wechat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pithyone%2Fthink-wechat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pithyone%2Fthink-wechat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pithyone","download_url":"https://codeload.github.com/pithyone/think-wechat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pithyone%2Fthink-wechat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28309752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["sdk","thinkphp","wechat"],"created_at":"2026-01-11T15:06:11.178Z","updated_at":"2026-01-11T15:06:11.762Z","avatar_url":"https://github.com/pithyone.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/pithyone/think-wechat/v/stable)](https://packagist.org/packages/pithyone/think-wechat)\n[![Latest Unstable Version](https://poser.pugx.org/pithyone/think-wechat/v/unstable)](https://packagist.org/packages/pithyone/think-wechat)\n[![License](https://poser.pugx.org/pithyone/think-wechat/license)](https://packagist.org/packages/pithyone/think-wechat)\n\n# think-wechat\n\n企业微信SDK for ThinkPHP5，基于 [pithyone/wechat](https://github.com/pithyone/wechat)\n\n\u003e 理论上支持 ThinkPHP 5.1.x 所有版本\n\n## 安装\n\n``` bash\ncomposer require pithyone/think-wechat\n```\n\n## 配置\n\n1. 创建配置文件\n\n将 `vendor/pithyone/think-wechat/src/config.php` 拷贝至应用配置目录，然后重命名为 `wework.php`\n\n2. 在 `provider.php` 绑定类库\n\n```php\nreturn [\n    // ...\n    'wework' =\u003e \\think\\WeWork::class,\n];\n```\n\n## 用法\n\n以获取 access_token 为例：\n\n```php\napp('wework')-\u003eget('token')-\u003eget();\n```\n\n使用其他应用时，改变默认设置即可，假设有一个测试应用为 `test`\n\n```php\napp('wework', ['test'], true)-\u003eget('token')-\u003eget();\n```\n\n更多用法请参考：https://pithyone.github.io/wechat/\n\n## License\n\n[MIT](https://github.com/pithyone/think-wechat/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpithyone%2Fthink-wechat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpithyone%2Fthink-wechat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpithyone%2Fthink-wechat/lists"}