anchnet/aliyun-openapi-php-sdk

阿里巴巴云SDK for PHP

dev-master 2018-06-26 07:23 UTC

This package is not auto-updated.

Last update: 2024-09-13 12:03:33 UTC


README

要求

  • PHP 5.3+

构建

  • 要运行单元测试,您需要在您的用户目录中配置 aliyun-sdk.properties 文件,并确保您的项目已启用相应的服务,例如 openmr。

Composer 支持

composer require anchnet/aliyun-openapi-php-sdk:dev-master

示例

include_once 'vendor/autoload.php';

use Ecs\Request\V20140526 as Ecs;

$iClientProfile = DefaultProfile::getProfile("cn-hangzhou", "<your accessKey>", "<your accessSecret>");
$client = new DefaultAcsClient($iClientProfile);

$request = new Ecs\DescribeRegionsRequest();
$request->setMethod("GET");
$response = $client->getAcsResponse($request);
print_r($response);

作者及贡献者

许可证

根据Apache License 2.0许可