PHPackages                             tencentcloud/tencentcloud-sdk-php-intl-en - 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. tencentcloud/tencentcloud-sdk-php-intl-en

ActiveLibrary[API Development](/categories/api)

tencentcloud/tencentcloud-sdk-php-intl-en
=========================================

TencentCloudApi php sdk

3.0.1349(1mo ago)41.0k↓89.1%9[3 issues](https://github.com/TencentCloud/tencentcloud-sdk-php-intl-en/issues)Apache-2.0PHPPHP &gt;=5.6.33

Since Feb 17Pushed 1mo agoCompare

[ Source](https://github.com/TencentCloud/tencentcloud-sdk-php-intl-en)[ Packagist](https://packagist.org/packages/tencentcloud/tencentcloud-sdk-php-intl-en)[ Docs](https://github.com/TencentCloud/tencentcloud-sdk-php-intl-en)[ RSS](/packages/tencentcloud-tencentcloud-sdk-php-intl-en/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (1341)Used By (0)

Overview
========

[](#overview)

Welcome to Tencent Cloud Software Development Kit (SDK), a companion tool for the TencentCloud API 3.0 platform. Tencent Cloud SDK for PHP helps PHP developers debug and use TencentCloud APIs with ease. This document describes Tencent Cloud SDK for PHP and how to quickly use it with code samples provided.

Dependent Environment
=====================

[](#dependent-environment)

1. PHP 5.6.33 or higher
2. Activate your product in the Tencent Cloud Console
3. Get the `SecretID`, `SecretKey`, and `endpoint`. The general format of endpoint is `*.intl.tencentcloudapi.com`. For example, the `endpoint` of CVM is `cvm.intl.tencentcloudapi.com`. For more information, please see the documentation of the specified product.

Installation
============

[](#installation)

Before installing Tencent Cloud SDK for PHP and using TencentCloud API, you need to apply for security credentials in the Tencent Cloud Console, which consists of `SecretID` and `SecretKey`. `SecretID` is for identifying the API requester. `SecretKey` is a key used for signature string encryption and authentication by the server. Please keep your `SecretKey` private and do not disclose it to others.

Installing via Composer
-----------------------

[](#installing-via-composer)

Installing via Composer is the recommended way to use the SDK for PHP. Composer is a dependency manager for PHP that supports the dependencies your project requires and installs them into your project. For more information, please visit Composer's official website.

1. Install Composer: For Windows, go to [Composer's official website](https://getcomposer.org/download/) to download the installation package and install composer.

    For Linux, install composer by running the following command on the command line.

    > curl -sS  | php
2. Add dependencies to the `require` structure of `composer.json`. **Please note that the version number here is just an example, and you can view the latest version number in the Composer repository**:

    > "tencentcloud/tencentcloud-sdk-php-intl-en": "3.0.1"
3. Run the `composer install` command to download and install the SDK for PHP.
4. Add the following import code. For importing methods, please see the sample.

    > require 'vendor/autoload.php';

Installing via Source Package
-----------------------------

[](#installing-via-source-package)

1. Go to [GitHub](https://github.com/tencentcloud/tencentcloud-sdk-php-intl-en) to clone the source code. Note: you must use the `git clone` method, as the source package directly download does not contain the required dependencies.
2. Decompress the package to an appropriate location in your project.
3. Add the following import code. For importing methods, please see the sample.

    > require\_once '../TCloudAutoLoader.php';

Sample
======

[](#sample)

Take the API for querying availability zones as an example:

```
