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.
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: