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

ActiveLibrary[API Development](/categories/api)

maxvanceffer/microsoft-translator
=================================

Library for making calls to the Microsoft Translator V2 API

v0.4.2(12y ago)019MITPHP

Since Dec 16Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (8)Used By (0)

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

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

By Matthias Noback

[![Build Status](https://camo.githubusercontent.com/16d962da109d725c9d9bbeaace13f46c50edfdf8751a68b5ad13f3060425c63a/68747470733a2f2f7472617669732d63692e6f72672f6d617474686961736e6f6261636b2f6d6963726f736f66742d7472616e736c61746f722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/matthiasnoback/microsoft-translator) [![Scrutinizer Quality Score](https://camo.githubusercontent.com/a65e40490a34658b0f2748b41323688f7ed7689e9983e8944af69350384e8ec0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d617474686961736e6f6261636b2f6d6963726f736f66742d7472616e736c61746f722f6261646765732f7175616c6974792d73636f72652e706e673f733d61333233306365346136363731356433613632373933646134386261323464386133306162383564)](https://scrutinizer-ci.com/g/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 V2 API](http://msdn.microsoft.com/en-us/library/ff512419.aspx).

You need to register your application at the [Azure DataMarket](https://datamarket.azure.com/developer/applications) and thereby retrieve a "client id" and a "client secret". These kan be used to instantiate the `AccessTokenProvider` on which the `MicrosoftTranslator` depends:

```
