{"id":13669163,"url":"https://github.com/qiniu/php-sdk","last_synced_at":"2025-05-14T08:06:51.310Z","repository":{"id":8083562,"uuid":"9497044","full_name":"qiniu/php-sdk","owner":"qiniu","description":"Qiniu Resource (Cloud) Storage SDK for PHP","archived":false,"fork":false,"pushed_at":"2024-10-30T10:23:44.000Z","size":12615,"stargazers_count":808,"open_issues_count":18,"forks_count":424,"subscribers_count":53,"default_branch":"master","last_synced_at":"2025-05-05T20:17:42.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/qiniu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2013-04-17T12:35:00.000Z","updated_at":"2025-04-23T20:36:53.000Z","dependencies_parsed_at":"2023-11-30T11:27:55.713Z","dependency_job_id":"bd6d89f0-2c91-4d1b-80cb-3054b1821d31","html_url":"https://github.com/qiniu/php-sdk","commit_stats":{"total_commits":664,"total_committers":40,"mean_commits":16.6,"dds":0.733433734939759,"last_synced_commit":"af52094cd1e795dad993c3e2e4f5f473bbb09988"},"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiniu%2Fphp-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiniu%2Fphp-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiniu%2Fphp-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qiniu%2Fphp-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qiniu","download_url":"https://codeload.github.com/qiniu/php-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101618,"owners_count":22014909,"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-08-02T08:01:04.584Z","updated_at":"2025-05-14T08:06:46.300Z","avatar_url":"https://github.com/qiniu.png","language":"PHP","funding_links":[],"categories":["PHP","配置 Configuration","第三方API( Third Party APIs )"],"sub_categories":["第三方api Third Party APIs"],"readme":"# Qiniu Cloud SDK for PHP\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)\n[![Build Status](https://travis-ci.org/qiniu/php-sdk.svg)](https://travis-ci.org/qiniu/php-sdk)\n[![GitHub release](https://img.shields.io/github/v/tag/qiniu/php-sdk.svg?label=release)](https://github.com/qiniu/php-sdk/releases)\n[![Latest Stable Version](https://img.shields.io/packagist/v/qiniu/php-sdk.svg)](https://packagist.org/packages/qiniu/php-sdk)\n[![Total Downloads](https://img.shields.io/packagist/dt/qiniu/php-sdk.svg)](https://packagist.org/packages/qiniu/php-sdk)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/qiniu/php-sdk/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/qiniu/php-sdk/?branch=master)\n[![Coverage Status](https://codecov.io/gh/qiniu/php-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/qiniu/php-sdk)\n[![Join Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/qiniu/php-sdk?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![@qiniu on weibo](http://img.shields.io/badge/weibo-%40qiniutek-blue.svg)](http://weibo.com/qiniutek)\n\n\n## 安装\n\n推荐使用 `composer` 进行安装。可以使用 composer.json 声明依赖，或者运行下面的命令。SDK 包已经放到这里 [`qiniu/php-sdk`][install-packagist] 。\n\n```bash\n$ composer require qiniu/php-sdk\n```\n\n## 运行环境\n\n| Qiniu SDK版本 |                     PHP 版本                      |\n|:--------------------:|:-----------------------------------------------:|\n|          7.x         | cURL extension,   5.3 - 5.6, 7.0 - 7.4, 8.0-8.1 |\n|          6.x         |           cURL extension,   5.2 - 5.6           |\n\n## 使用方法\n\n### 上传\n```php\nuse Qiniu\\Storage\\UploadManager;\nuse Qiniu\\Auth;\n...\n    $uploadMgr = new UploadManager();\n    $auth = new Auth($accessKey, $secretKey);\n    $token = $auth-\u003euploadToken($bucket);\n    list($ret, $error) = $uploadMgr-\u003eputFile($token, 'key', 'filePath');\n...\n```\n\n## 测试\n\n``` bash\n$ ./vendor/bin/phpunit tests/Qiniu/Tests/\n```\n\n## 常见问题\n\n- `$error` 保留了请求响应的信息，失败情况下 `ret` 为 `none`, 将 `$error` 可以打印出来，提交给我们。\n- API 的使用 demo 可以参考 [examples](https://github.com/qiniu/php-sdk/tree/master/examples)。\n\n## 代码贡献\n\n详情参考[代码提交指南](https://github.com/qiniu/php-sdk/blob/master/CONTRIBUTING.md)。\n\n## 贡献记录\n\n- [所有贡献者](https://github.com/qiniu/php-sdk/contributors)\n\n## 联系我们\n\n- 如果需要帮助，请提交工单（在portal右侧点击咨询和建议提交工单，或者直接向 support@qiniu.com 发送邮件）\n- 如果有什么问题，可以到问答社区提问，[问答社区](https://qiniu.segmentfault.com/)\n- 更详细的文档，见[官方文档站](https://developer.qiniu.com/)\n- 如果发现了 bug， 欢迎提交 [issue](https://github.com/qiniu/php-sdk/issues)\n- 如果有功能需求，欢迎提交 [issue](https://github.com/qiniu/php-sdk/issues)\n- 如果要提交代码，欢迎提交 pull request\n- 欢迎关注我们的[微信](https://www.qiniu.com/#weixin) [微博](https://weibo.com/qiniutek)，及时获取动态信息。\n\n## 代码许可\n\nThe MIT License (MIT).详情见 [License文件](https://github.com/qiniu/php-sdk/blob/master/LICENSE).\n\n[packagist]: http://packagist.org\n[install-packagist]: https://packagist.org/packages/qiniu/php-sdk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqiniu%2Fphp-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqiniu%2Fphp-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqiniu%2Fphp-sdk/lists"}