Text-Translation-API-V3-PHP icon indicating copy to clipboard operation
Text-Translation-API-V3-PHP copied to clipboard

Text-Translation-API-V3-PHP

Prerequisites

You will need PHP 5.6.x to run this code.

You must have a Cognitive Services API account with Microsoft Translator Text API. You will need a paid subscription key from your Azure dashboard.

Code samples

The code in this repository contains examples for all of the Microsoft Text Translator V3 API methods. Each file demonstrates a single method. To try out a method:

Create a new PHP project in your favorite IDE.

Add the provided code.

Replace the key value with an access key valid for your subscription.

Run the program.

Translator Text API Reference