edit-icon download-icon

PHP SDK

Last Updated: Jan 09, 2018

You can write codes based on Alibaba Cloud SDK to call an Alibaba Cloud API so as to flexibly deploy and quickly operate Alibaba Cloud products and services.

Obtain AccessKey of an RAM sub-account

AccessKey is needed in the using process. To guarantee the security of cloud service, create a Resource Access Management (RAM) sub-account that can access Container Service resources. Obtain the AccessKey of this sub-account, and use this RAM sub-account and SDK to manage Container Service.

Follow these steps to obtain the AccessKey of the RAM sub-account:

  1. Create an RAM user and create the AccessKey of this user.
  2. Grant permissions to this RAM user. Grant the RAM sub-account the permissions to manage Container Service resources.

Prerequisites

PHP 5.3 or later versions.

Download SDK

Download the source codes of PHP SDK from GitHub.

Sample

https://github.com/AliyunContainerService/aliyun-openapi-php-sdk/blob/master/aliyun-php-sdk-demo/CsDemo.php

Thank you! We've received your feedback.