aliyun-openapi-php-sdk 是阿里云官方为 PHP 开发者提供的阿里云 Open API SDK。
示例:
include_once '../aliyun-php-sdk-core/Config.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);