Download the PHP
package tencentcloud/tencentcloud-sdk-php-intl-en without Composer
On this page you can find all versions of the php package
tencentcloud/tencentcloud-sdk-php-intl-en. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Informations about the package tencentcloud-sdk-php-intl-en
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
PHP 5.6.33 or higher
Activate your product in the Tencent Cloud Console
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
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 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.
Install Composer:
For Windows, go to Composer's official website to download the installation package and install composer.
For Linux, install composer by running the following command on the command line.
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:
Run the composer install command to download and install the SDK for PHP.
Add the following import code. For importing methods, please see the sample.
require 'vendor/autoload.php';
Installing via Source Package
Go to GitHub 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.
Decompress the package to an appropriate location in your project.
Add the following import code. For importing methods, please see the sample.
require_once '../TCloudAutoLoader.php';
Sample
Take the API for querying availability zones as an example:
More Samples
You can find more detailed samples in the examples directory of the GitHub.
Relevant Configuration
Proxy
If there is a proxy in your environment, you need to set the system environment variable https_proxy; otherwise, it may not be called normally, and a connection timeout exception will be thrown.
Certificate Issue
If there is a problem with your PHP environment certificate, errors similar to cURL error 60: See http://curl.haxx.se/libcurl/c/libcurl-errors.html may occur, which can be solved as follows:
Edit the php.ini file: delete the semicolon comment (;) before the curl.cainfo configuration item and set the value to the absolute path of the saved certificate file cacert.pem.
Restart the services that depend on PHP.
php_curl Extension
GuzzleHttp, which this SDK depends on, needs to have the php_curl extension enabled. Check whether the php.ini environment in your environment is enabled. For example, on Linux with PHP 7.1, for services hosted under Apache, you can open /etc/php/7.1/apache2/php.ini to see whether the extension=php_curl.dll configuration item has been commented. Please delete the comment before it and restart Apache.
Compliance Notice
Please prioritize using the default domain names configured in the SDK for each product. If using other domains, note that overseas domains may pose data compliance risks.
All versions of tencentcloud-sdk-php-intl-en with dependencies
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package tencentcloud/tencentcloud-sdk-php-intl-en contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.