PHPackages                             matthiasnoback/microsoft-translator - 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. matthiasnoback/microsoft-translator

ActiveLibrary[API Development](/categories/api)

matthiasnoback/microsoft-translator
===================================

Library for making calls to the Microsoft Translator V2 API

v4.0.0(1y ago)39234.2k↓50%253MITPHPCI failing

Since Dec 16Pushed 1y ago4 watchersCompare

[ Source](https://github.com/matthiasnoback/microsoft-translator)[ Packagist](https://packagist.org/packages/matthiasnoback/microsoft-translator)[ Docs](http://github.com/matthiasnoback/microsoft-translator)[ RSS](/packages/matthiasnoback-microsoft-translator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (5)Versions (20)Used By (3)

PHP library for the Microsoft Translator V3 API
===============================================

[](#php-library-for-the-microsoft-translator-v3-api)

By Matthias Noback (maintained by Alayn Gortazar)

[![Build Status](https://camo.githubusercontent.com/16d962da109d725c9d9bbeaace13f46c50edfdf8751a68b5ad13f3060425c63a/68747470733a2f2f7472617669732d63692e6f72672f6d617474686961736e6f6261636b2f6d6963726f736f66742d7472616e736c61746f722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/matthiasnoback/microsoft-translator)

Installation
------------

[](#installation)

Using Composer, add to `composer.json`:

```
{
    "require": {
        "matthiasnoback/microsoft-translator": "dev-master"
    }
}

```

Then using the Composer binary:

```
php composer.phar install

```

Usage
-----

[](#usage)

This library uses the Buzz browser to make calls to the [Microsoft Translator Text API 3.0](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/reference/v3-0-languages?tabs=curl).

You need to [obtain a Microsoft Azure Cognitive Services subscription Key](https://docs.microsoft.com/en-us/azure/cognitive-services/cognitive-services-apis-create-account). This can be used to instantiate the `AzureTokenProvider`:

```
