# volcengine-php-sdk **Repository Path**: sjmoban/volcengine-php-sdk ## Basic Information - **Project Name**: volcengine-php-sdk - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-02 - **Last Updated**: 2024-07-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Volcengine SDK for PHP ## Requirements PHP 5.5 and later ## Installation & Usage ### Composer To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`: ``` { "require": { "volcengine/volcengine-php-sdk": "v1.0.20" } } ``` Then run `composer install` ## Getting Started Please follow the [installation procedure](#installation--usage) and then run the following: ```php setAk("Your AK") ->setSk("Your SK") ->setRegion("cn-beijing"); $apiInstance = new \Volcengine\Vpc\API\VPCApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Volcengine\Vpc\Model\CreateVpcRequest(); $body->setClientToken("token-123456789") ->setCidrBlock("192.168.0.0/16") ->setDnsServers(array("10.0.0.1", "10.1.1.2")); try { $result = $apiInstance->createVpc($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling VPCApi->createVpc: ', $e->getMessage(), PHP_EOL; } ?> ```