PHPackages                             natxet/microsoft-translation-api - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. natxet/microsoft-translation-api

ActiveLibrary[HTTP &amp; Networking](/categories/http)

natxet/microsoft-translation-api
================================

Access to the free Microsoft's HTTP translation API

113903[2 issues](https://github.com/natxet/MicrosoftTranslator/issues)PHP

Since May 24Pushed 13y ago3 watchersCompare

[ Source](https://github.com/natxet/MicrosoftTranslator)[ Packagist](https://packagist.org/packages/natxet/microsoft-translation-api)[ RSS](/packages/natxet-microsoft-translation-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Translate your texts using Microsoft's Bing Translation services HTTP API

The code is based on the one provided by Microsoft at the documentation, prepared for composer. In two lines, you can have a translation service working!

Before working with the code, get your Access Token, using your MSN account. More info at:

Don't get confused with the clientID. It's not the Customer ID nor your account key. The clientID is the text (possibly your app name or some plain-language text) that you specified when registering your application. You can view your client id here:

There is a free data tier of 2 million characters per month. Check here if you haven't used yet your monthly limit:

Use with composer:

```
{
	"require": {
		"natxet/microsoft-translation-api": "*"
	},
	"minimum-stability": "dev"
}

```

And then code something like this:

```
include "vendor/autoload.php";
$config      = array( 'clientID' => 'myproject', 'clientSecret' => 'PYdLDxusfg4+MPdLDxudLDxusfg4+sfg4+Q1XixZ=');
$translator  = new \MicrosoftTranslator\Translate( $config );
$translation = $translator->translate(array('Hola', 'Adiós'), 'en', 'es');
var_dump( $translation );

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1036236?v=4)[Nacho C.](/maintainers/natxet)[@natxet](https://github.com/natxet)

---

Top Contributors

[![natxet](https://avatars.githubusercontent.com/u/1036236?v=4)](https://github.com/natxet "natxet (11 commits)")

### Embed Badge

![Health badge](/badges/natxet-microsoft-translation-api/health.svg)

```
[![Health](https://phpackages.com/badges/natxet-microsoft-translation-api/health.svg)](https://phpackages.com/packages/natxet-microsoft-translation-api)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
