PHPackages                             alibabacloud/client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. alibabacloud/client

ActiveLibrary[API Development](/categories/api)

alibabacloud/client
===================

Alibaba Cloud Client for PHP - Use Alibaba Cloud in your PHP project

1.5.32(3y ago)2223.5M—3.2%54[4 issues](https://github.com/aliyun/openapi-sdk-php-client/issues)[3 PRs](https://github.com/aliyun/openapi-sdk-php-client/pulls)20Apache-2.0PHPPHP &gt;=5.5CI passing

Since Jan 8Pushed 2mo ago5 watchersCompare

[ Source](https://github.com/aliyun/openapi-sdk-php-client)[ Packagist](https://packagist.org/packages/alibabacloud/client)[ Docs](https://www.alibabacloud.com/)[ RSS](/packages/alibabacloud-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (70)Used By (20)

English | [简体中文](/README-zh-CN.md)

Alibaba Cloud Client for PHP
============================

[](#alibaba-cloud-client-for-php)

[![Latest Stable Version](https://camo.githubusercontent.com/e707580fb2e1851f05eb8bc55e53bddbbbfcae2542d92a2427f37f3273517f20/68747470733a2f2f706f7365722e707567782e6f72672f616c6962616261636c6f75642f636c69656e742f762f737461626c65)](https://packagist.org/packages/alibabacloud/client)[![composer.lock](https://camo.githubusercontent.com/32d9a95528de48fff11a9437f031324b85374a54983ced087e3151d02e1592a2/68747470733a2f2f706f7365722e707567782e6f72672f616c6962616261636c6f75642f636c69656e742f636f6d706f7365726c6f636b)](https://packagist.org/packages/alibabacloud/client)[![Total Downloads](https://camo.githubusercontent.com/cc1144e00a3af90977102f40011a2b3731afadb408c51dd9255e442b0e10c0a1/68747470733a2f2f706f7365722e707567782e6f72672f616c6962616261636c6f75642f636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/alibabacloud/client)[![License](https://camo.githubusercontent.com/afa294e24ecf28c37b8c5e255ecd54787bd8cf8ea4d2eb28ed303b89b1fb21a6/68747470733a2f2f706f7365722e707567782e6f72672f616c6962616261636c6f75642f636c69656e742f6c6963656e7365)](https://packagist.org/packages/alibabacloud/client)[![codecov](https://camo.githubusercontent.com/8df7666ddedb9d31aedc1910084a955678f43fd66c5ac9e3ac081bc6a45e875b/68747470733a2f2f636f6465636f762e696f2f67682f616c6979756e2f6f70656e6170692d73646b2d7068702d636c69656e742f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d3930596435426e653353)](https://codecov.io/gh/aliyun/openapi-sdk-php-client)[![PHP Version Require](https://camo.githubusercontent.com/db510815b5297496154b11d0e5ae095079c3109108b4185e598d37cf31c32708/687474703a2f2f706f7365722e707567782e6f72672f616c6962616261636c6f75642f636c69656e742f726571756972652f706870)](https://packagist.org/packages/alibabacloud/client)

[![](https://camo.githubusercontent.com/ca39579bcc45443c3d23b19002c51ce56df19303955fd14f99de94538786ad98/68747470733a2f2f616c6979756e73646b2d70616765732e616c6963646e2e636f6d2f69636f6e732f416c6962616261436c6f75642e737667)](https://camo.githubusercontent.com/ca39579bcc45443c3d23b19002c51ce56df19303955fd14f99de94538786ad98/68747470733a2f2f616c6979756e73646b2d70616765732e616c6963646e2e636f6d2f69636f6e732f416c6962616261436c6f75642e737667)

The Alibaba Cloud V1.0 PHP SDK has entered the basic security maintenance phase and is no longer recommended for use. New users should directly use the V2.0 PHP SDK; users who have already integrated the V1.0 PHP SDK are also advised to migrate to the V2.0 PHP SDK. V2.0 PHP SDK is available here: , for usage, please refer to [Help Center Documentation](https://help.aliyun.com/zh/sdk/developer-reference/v2-php-integrated-sdk) and [Alibaba Cloud OpenAPI Developer Portal](https://next.api.aliyun.com/).

Troubleshoot
------------

[](#troubleshoot)

[Troubleshoot](https://api.aliyun.com/troubleshoot?source=github_sdk) Provide OpenAPI diagnosis service to help developers locate quickly and provide solutions for developers through `RequestID` or `error message`.

Online Demo
-----------

[](#online-demo)

[Alibaba Cloud OpenAPI Developer Portal](https://api.aliyun.com/) provides the ability to call the cloud product OpenAPI online, and dynamically generate SDK Example code and quick retrieval interface, which can significantly reduce the difficulty of using the cloud API.

Prerequisites
-------------

[](#prerequisites)

Your system will need to meet the [Prerequisites](/docs/en-US/0-Prerequisites.md), including having PHP &gt;= 5.5. We highly recommend having it compiled with the cURL extension and cURL 7.16.2+.

Installation
------------

[](#installation)

If Composer is already [installed globally on your system](https://getcomposer.org/doc/00-intro.md#globally), run the following in the base directory of your project to install Alibaba Cloud Client for PHP as a dependency:

```
composer require alibabacloud/client

```

> Some users may not be able to install due to network problems, you can try to switch the Composer mirror.

Please see the [Installation](/docs/en-US/1-Installation.md) for more detailed information about installing the Alibaba Cloud Client for PHP through Composer and other means.

Quick Examples
--------------

[](#quick-examples)

Before you begin, you need to sign up for an Alibaba Cloud account and retrieve your [Credentials](https://usercenter.console.aliyun.com/#/manage/ak).

### Create Client

[](#create-client)

```
