All Products
Search
Document Center

Machine Translation:PHP SDK

Last Updated:Apr 25, 2025

Download URL

The GitHub address of the Machine Translation SDK is available at: SDK download

Procedure

Follow these steps to quickly start using the Machine Translation PHP SDK.

Step 1: Create an Alibaba Cloud account

For more information, see Register an account.

To better use Alibaba Cloud services, we recommend that you complete real-name authentication as soon as possible. Otherwise, some Alibaba Cloud services will be unavailable.

Step 2: Obtain an Alibaba Cloud AccessKey pair

To use the Machine Translation PHP SDK, you must request an Alibaba Cloud AccessKey pair.

Log on to the Alibaba Cloud AccessKey management page. Select an AccessKey pair for the SDK. If you do not have an AccessKey pair, create one and ensure that it is in the Enabled status. The key refers to the Access Key ID and Access Key Secret

This AccessKey pair will be used in the following steps and must be kept secure and not disclosed to others.

Step 3: Start a new PHP project

You can start using the PHP SDK. You can use any text editor or PHP IDE to run the following sample code to interact with the Machine Translation service and obtain the corresponding outputs.

For sample code, see SDK examples (PHP).