This topic describes how to add dependencies to install the Alibaba Cloud SDK for PHP.
Prerequisites
Before you install and use the Alibaba Cloud SDK for PHP, the Alibaba Cloud account is created and the AccessKey pair is created. For more information, see Create an AccessKey pair.
Procedure
To install dependencies by using the Composer dependency manager, perform the following operation:
composer require alibabacloud/client
For more information about Composer and other installation methods, see Installation guide.
After the Alibaba Cloud SDK for PHP is installed, you can use OpenAPI Explorer to generate the sample code of API operations for the SDK, and apply the sample code in your projects. For more information, see Installation and usage guide.