{"id":13704693,"url":"https://github.com/aliyun/openapi-sdk-php","last_synced_at":"2026-04-13T17:01:52.902Z","repository":{"id":41039565,"uuid":"163782117","full_name":"aliyun/openapi-sdk-php","owner":"aliyun","description":"The Alibaba Cloud V1.0 SDK will soon enter the Basic Security Maintenance phase and is no longer recommended for use. V2.0 SDK is available here: https://github.com/aliyun/alibabacloud-php-sdk","archived":false,"fork":false,"pushed_at":"2026-04-02T09:43:47.000Z","size":14618,"stargazers_count":528,"open_issues_count":16,"forks_count":110,"subscribers_count":8,"default_branch":"master","last_synced_at":"2026-04-03T08:28:39.878Z","etag":null,"topics":["composer","sdk","v1"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/alibabacloud/sdk","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aliyun.png","metadata":{"files":{"readme":"README-zh-CN.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"SUPPORTED-EN.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE.md","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-01-02T01:54:43.000Z","updated_at":"2026-04-02T09:43:54.000Z","dependencies_parsed_at":"2024-01-16T10:35:13.521Z","dependency_job_id":"141124e8-fece-46f3-a839-111a700caebc","html_url":"https://github.com/aliyun/openapi-sdk-php","commit_stats":{"total_commits":2542,"total_committers":7,"mean_commits":"363.14285714285717","dds":0.05979543666404408,"last_synced_commit":"b5146e1eea234acab7720580dc8c53c1382201e2"},"previous_names":[],"tags_count":2532,"template":false,"template_full_name":null,"purl":"pkg:github/aliyun/openapi-sdk-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliyun%2Fopenapi-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliyun%2Fopenapi-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliyun%2Fopenapi-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliyun%2Fopenapi-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aliyun","download_url":"https://codeload.github.com/aliyun/openapi-sdk-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliyun%2Fopenapi-sdk-php/sbom","scorecard":{"id":184810,"data":{"date":"2025-08-11","repo":{"name":"github.com/aliyun/openapi-sdk-php","commit":"f733e2de06f478b31aa1ece1f2f66ace163adc41"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}}]},"last_synced_at":"2025-08-16T19:36:17.845Z","repository_id":41039565,"created_at":"2025-08-16T19:36:17.845Z","updated_at":"2025-08-16T19:36:17.845Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31761996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"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":["composer","sdk","v1"],"created_at":"2024-08-02T21:01:18.279Z","updated_at":"2026-04-13T17:01:52.879Z","avatar_url":"https://github.com/aliyun.png","language":"PHP","funding_links":[],"categories":["配置 Configuration","第三方API( Third Party APIs )"],"sub_categories":["第三方api Third Party APIs"],"readme":"[English](/README.md) | 简体中文\n\n# Alibaba Cloud SDK for PHP\n[![Latest Stable Version](https://poser.pugx.org/alibabacloud/sdk/v/stable)](https://packagist.org/packages/alibabacloud/sdk)\n[![composer.lock](https://poser.pugx.org/alibabacloud/sdk/composerlock)](https://packagist.org/packages/alibabacloud/sdk)\n[![Total Downloads](https://poser.pugx.org/alibabacloud/sdk/downloads)](https://packagist.org/packages/alibabacloud/sdk)\n[![License](https://poser.pugx.org/alibabacloud/sdk/license)](https://packagist.org/packages/alibabacloud/sdk)\n[![codecov](https://codecov.io/gh/aliyun/openapi-sdk-php/branch/master/graph/badge.svg)](https://codecov.io/gh/aliyun/openapi-sdk-php)\n[![Travis Build Status](https://travis-ci.org/aliyun/openapi-sdk-php.svg?branch=master)](https://travis-ci.org/aliyun/openapi-sdk-php)\n[![Appveyor Build Status](https://ci.appveyor.com/api/projects/status/mddt341e3hpju1nw/branch/master?svg=true)](https://ci.appveyor.com/project/aliyun/openapi-sdk-php/branch/master)\n\n![AlibabaCloud](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)\n\n阿里云 V1.0 PHP SDK 已进入基础安全维护阶段，不再建议使用。新用户请直接使用 [V2.0 PHP SDK](https://github.com/aliyun/alibabacloud-php-sdk)；已经集成 V1.0 PHP SDK 的用户也建议迁移至 [V2.0 PHP SDK](https://github.com/aliyun/alibabacloud-php-sdk)。V2.0 PHP SDK 使用方式请参见[帮助中心文档](https://help.aliyun.com/zh/sdk/developer-reference/v2-php-integrated-sdk)以及[阿里云 OpenAPI 开发者门户](https://next.api.aliyun.com/)。\n\n## 发行说明\n\n我们在 `消除已知问题` 和 `兼容旧语法` 的原则上开发了新内核，增加了如下特性：\n\n- [支持 Composer][packagist]\n- [支持多客户端和客户端配置文件][clients]\n- [结果是一个强大的对象][result]\n- [每一个请求配置更加灵活][request]\n\n## 先决条件\n\n您的系统需要满足[先决条件](/docs/zh-CN/0-Prerequisites.md)，包括 PHP \u003e= 5.5。 我们强烈建议使用cURL扩展，并使用 TLS 后端编译 cURL 7.16.2+。\n\n## 安装依赖\n\n如果已在系统上[全局安装 Composer](https://getcomposer.org/doc/00-intro.md#globally)，请直接在项目目录中运行以下内容来安装 Alibaba Cloud SDK for PHP 作为依赖项：\n\n```bash\ncomposer require alibabacloud/sdk\n```\n\n请看[安装](/docs/zh-CN/1-Installation.md)有关通过 Composer 和其他方式安装的详细信息。\n\n## 使用诊断\n\n[Troubleshoot](https://next.api.aliyun.com/troubleshoot?source=github_sdk) 提供 OpenAPI 使用诊断服务，通过 `RequestID` 或 `报错信息` ，帮助开发者快速定位，为开发者提供解决方案。\n\n## 在线示例\n\n[阿里云 OpenAPI 开发者门户](https://next.api.aliyun.com/) 提供在线调用阿里云产品，并动态生成 SDK 代码和快速检索接口等能力，能显著降低使用云 API 的难度。\n\n## 快速使用\n\n在您开始之前，您需要注册阿里云帐户并获取您的[凭证](https://usercenter.console.aliyun.com/#/manage/ak)。请求之前，请[了解使用客户端][clients]，请求之后，请[了解结果对象][result]。\n\n\u003e 目前仅支持部分阿里云产品，[已支持产品列表](/SUPPORTED.md)，对于没有支持的产品，您可使用 [Alibaba Cloud Client for PHP][request] 发起自定义请求，还可使用 [阿里云 OpenAPI 开发者门户](https://next.api.aliyun.com/) 在线生成 Alibaba Cloud Client for PHP 代码。\n\n```php\n\u003c?php\n\nuse AlibabaCloud\\Client\\AlibabaCloud;\nuse AlibabaCloud\\Client\\Exception\\ClientException;\nuse AlibabaCloud\\Client\\Exception\\ServerException;\nuse AlibabaCloud\\Ecs\\Ecs;\n\n// 设置全局客户端\nAlibabaCloud::accessKeyClient('foo', 'bar')\n            -\u003eregionId('cn-hangzhou')\n            -\u003easDefaultClient();\n\ntry {\n    // 访问产品 APIs\n    $request = Ecs::v20140526()-\u003edescribeRegions();\n    \n    // 设置选项/参数并执行请求\n    $result = $request-\u003ewithResourceType('type') // API 的参数\n                      -\u003ewithInstanceChargeType('type') // API 的参数\n                      -\u003eclient('client1') // 指定发送客户端，否则使用全局客户端\n                      -\u003edebug(true) // 开启调试会输出详细信息\n                      -\u003econnectTimeout(0.01) // 连接超时会抛出异常\n                      -\u003etimeout(0.01) // 超时会抛出异常\n                      -\u003erequest(); // 执行请求\n    \n    // 也可以传入数组设置\n    $options = [\n                   'debug'           =\u003e true,\n                   'connect_timeout' =\u003e 0.01,\n                   'timeout'         =\u003e 0.01,\n                   'query'           =\u003e [\n                       'ResourceType' =\u003e 'type',\n                       'InstanceChargeType' =\u003e 'type',\n                   ],\n               ];\n\n    // 设置的优先级\n    $result2 = Ecs::v20140526()\n                  -\u003edescribeRegions($options)\n                  -\u003eoptions([\n                                'query' =\u003e [\n                                    'Key'      =\u003e '我会覆盖构造函数的这个值',\n                                    'new'      =\u003e '我是新增的值',\n                                ],\n                            ])\n                  -\u003eoptions([\n                                'query' =\u003e [\n                                    'Key' =\u003e '我会覆盖以前的值',\n                                    'bar' =\u003e '我是新增的值',\n                                ],\n                            ])\n                  -\u003edebug(false) // 最后调用的会覆盖前者\n                  -\u003erequest();\n    \n} catch (ClientException $exception) {\n    echo $exception-\u003egetMessage(). PHP_EOL;\n} catch (ServerException $exception) {\n    echo $exception-\u003egetMessage() . PHP_EOL;\n    echo $exception-\u003egetErrorCode(). PHP_EOL;\n    echo $exception-\u003egetRequestId(). PHP_EOL;\n    echo $exception-\u003egetErrorMessage(). PHP_EOL;\n}\n```\n\n## 问题\n\n[提交 Issue](https://github.com/aliyun/openapi-sdk-php/issues/new/choose)，不符合指南的问题可能会立即关闭。\n\n## 发布日志\n\n每个版本的详细更改记录在[发行说明](/CHANGELOG.md)中。\n\n## 贡献\n\n提交 Pull Request 之前请阅读[贡献指南](/CONTRIBUTING.md)。\n\n## 相关\n\n- [阿里云服务 Regions \u0026 Endpoints][endpoints]\n- [阿里云 OpenAPI 开发者门户][open-api]\n- [Packagist][packagist]\n- [Composer][composer]\n- [Guzzle中文文档][guzzle-docs]\n- [Latest Release][latest-release]\n\n## 许可证\n\n[Apache-2.0](/LICENSE.md)\n\nCopyright (c) 2009-present, Alibaba Cloud All rights reserved.\n\n[open-api]: https://next.api.aliyun.com/\n[latest-release]: https://github.com/aliyun/openapi-sdk-php\n[guzzle-docs]: https://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html\n[composer]: http://getcomposer.org\n[packagist]: https://packagist.org/packages/alibabacloud/sdk\n[client]: https://github.com/aliyun/openapi-sdk-php-client/blob/master/README-zh-CN.md\n[clients]: https://github.com/aliyun/openapi-sdk-php-client/blob/master/docs/zh-CN/2-Client.md\n[request]: https://github.com/aliyun/openapi-sdk-php-client/blob/master/docs/zh-CN/3-Request.md\n[result]: https://github.com/aliyun/openapi-sdk-php-client/blob/master/docs/zh-CN/4-Result.md\n[ak]: https://usercenter.console.aliyun.com/?spm=5176.doc52740.2.3.QKZk8w#/manage/ak\n[home]: https://home.console.aliyun.com/?spm=5176.doc52740.2.4.QKZk8w\n[cURL]: http://php.net/manual/en/book.curl.php\n[OPCache]: http://php.net/manual/en/book.opcache.php\n[xdebug]: http://xdebug.org\n[OpenSSL]: http://php.net/manual/en/book.openssl.php\n[aliyun]: https://www.aliyun.com\n[alibabacloud]: https://www.alibabacloud.com\n[endpoints]: https://developer.aliyun.com/endpoints\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliyun%2Fopenapi-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliyun%2Fopenapi-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliyun%2Fopenapi-sdk-php/lists"}