{"id":19411525,"url":"https://github.com/volcengine/volcengine-php-sdk","last_synced_at":"2026-01-22T14:43:38.181Z","repository":{"id":173239640,"uuid":"650120422","full_name":"volcengine/volcengine-php-sdk","owner":"volcengine","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-18T12:43:27.000Z","size":454,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-18T17:04:38.077Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/volcengine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-06-06T11:35:28.000Z","updated_at":"2024-05-30T14:35:35.110Z","dependencies_parsed_at":null,"dependency_job_id":"2b2a4171-b3d0-40c9-8e63-05500bc2be3c","html_url":"https://github.com/volcengine/volcengine-php-sdk","commit_stats":null,"previous_names":["volcengine/volcengine-php-sdk"],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2Fvolcengine-php-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2Fvolcengine-php-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2Fvolcengine-php-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2Fvolcengine-php-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/volcengine","download_url":"https://codeload.github.com/volcengine/volcengine-php-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223950386,"owners_count":17230463,"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-10T12:21:51.384Z","updated_at":"2025-12-25T14:46:15.108Z","avatar_url":"https://github.com/volcengine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Volcengine SDK for PHP\n\n## Requirements\n\nPHP 5.5 and later\n\n## Installation \u0026 Usage\n\n### Composer\n\nTo install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`:\n\n```\n{\n  \"require\": {\n    \"volcengine/volcengine-php-sdk\": \"v1.0.54\"\n  }\n}\n```\n\nThen run `composer install`\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage)\n\n##### Endpoint 设置 #####\n\n如果您要自定义SDK的Endpoint，可以按照以下示例代码设置：\n\n```php\n$config = \\Volcengine\\Common\\Configuration::getDefaultConfiguration()\n    -\u003esetAk(\"Your AK\")\n    -\u003esetSk(\"Your SK\")\n    -\u003esetRegion(\"cn-beijing\")\n    -\u003esetHost(\"ecs.cn-beijing-autodriving.volcengineapi.com\");\n```\n\n火山引擎标准的Endpoint规则说明：\n\n| Regional 服务                                                                                                                            | Global 服务                                                                          |\n|----------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| `{service}.{region}.volcengineapi.com` \u003cbr\u003e 例如：云服务ecs在cn-beijing-autodriving Region域名为： `ecs.cn-beijing-autodriving.volcengineapi.com` | `{service}.volcengineapi.com` \u003cbr\u003e 例如：访问控制iam为Global服务，域名为：`iam.volcengineapi.com` |\n\n注：\n\n- Service中存在_符号时，Endpoint时需转为-符号。存在大写字母时需转成小写。\n- 并非所有云产品和Region都支持标准域名，具体请前往您所使用的产品-API参考中查看。\n\n##### SDK 示例 #####\n\n```php\n\u003c?php\nrequire_once(__DIR__ . '/vendor/autoload.php');\n\n$config = \\Volcengine\\Common\\Configuration::getDefaultConfiguration()\n    -\u003esetAk(\"Your AK\")\n    -\u003esetSk(\"Your SK\")\n    -\u003esetRegion(\"cn-beijing\");\n\n$apiInstance = new \\Volcengine\\Vpc\\API\\VPCApi(\n    // If you want use custom http client, pass your client which implements `GuzzleHttp\\ClientInterface`.\n    // This is optional, `GuzzleHttp\\Client` will be used as default.\n    new GuzzleHttp\\Client(),\n    $config\n);\n\n$body = new \\Volcengine\\Vpc\\Model\\CreateVpcRequest();\n$body-\u003esetClientToken(\"token-123456789\")\n    -\u003esetCidrBlock(\"192.168.0.0/16\")\n    -\u003esetDnsServers(array(\"10.0.0.1\", \"10.1.1.2\"));\n\ntry {\n    $result = $apiInstance-\u003ecreateVpc($body);\n    print_r($result);\n} catch (Exception $e) {\n    echo 'Exception when calling VPCApi-\u003ecreateVpc: ', $e-\u003egetMessage(), PHP_EOL;\n}\n\n?\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolcengine%2Fvolcengine-php-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolcengine%2Fvolcengine-php-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolcengine%2Fvolcengine-php-sdk/lists"}