PHPackages                             timga/php-translo - 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. timga/php-translo

ActiveLibrary[API Development](/categories/api)

timga/php-translo
=================

PHP library for Translo API

0.0.1(3y ago)04PHP

Since Sep 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/TimGa/php-translo)[ Packagist](https://packagist.org/packages/timga/php-translo)[ RSS](/packages/timga-php-translo/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Translo PHP
-----------

[](#translo-php)

PHP Client for Translo API

Installing
----------

[](#installing)

```
composer require timga/php-translo

```

Translate
---------

[](#translate)

```
use Translo\Translo;

require 'vendor/autoload.php';

$apiKey = 'YOUR-RAPIDAPI-KEY';
$translo = new Translo($apiKey);

$textToTranslate = "Что хочешь помнить, то всегда помнишь.";
$fromLang = "ru";
$toLang = "en";

$result = $translo->translate($textToTranslate, $fromLang, $toLang);
var_dump($result);
```

### Output:

[](#output)

```
array(3) {
  'ok' =>
  bool(true)
  'text_lang' =>
  string(2) "ru"
  'translated_text' =>
  string(47) "What you want to remember, you always remember."
}

```

Batch translate
---------------

[](#batch-translate)

```
use Translo\Translo;

require 'vendor/autoload.php';

$apiKey = 'YOUR-RAPIDAPI-KEY';
$translo = new Translo($apiKey);

$result = $translo->batchTranslate([
    [
        "from" => "en",
        "to" => "ru",
        "text" => "банан"
    ],
    [
        "from" => "en",
        "to" => "es",
        "text" => "Ma-ia hii\nMa-ia huu"
    ],
    [
        "from" => "auto",
        "to" => "bn",
        "text" => "bonjour"
    ]
]);
var_dump($result);
```

### Output:

[](#output-1)

```
array(2) {
  'ok' =>
  bool(true)
  'batch_translations' =>
  array(3) {
    [0] =>
    array(3) {
      'from' =>
      string(2) "en"
      'to' =>
      string(2) "ru"
      'text' =>
      string(10) "банан"
    }
    [1] =>
    array(3) {
      'from' =>
      string(2) "en"
      'to' =>
      string(2) "es"
      'text' =>
      string(20) "Ma-ia hola
Ma-ia huu"
    }
    [2] =>
    array(3) {
      'from' =>
      string(2) "fr"
      'to' =>
      string(2) "bn"
      'text' =>
      string(18) "হ্যালো"
    }
  }
}

```

Detect
------

[](#detect)

```
use Translo\Translo;

require 'vendor/autoload.php';

$apiKey = 'YOUR-RAPIDAPI-KEY';
$translo = new Translo($apiKey);

$result = $translo->detect("Translo is the best translator in Telegram");
var_dump($result);
```

### Output:

[](#output-2)

```
array(2) {
  'ok' =>
  bool(true)
  'lang' =>
  string(2) "en"
}

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1333d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78b2b0f9fa84d22937e65d7881c8fd94a5a12d6968a66f5d37cd253241cbda19?d=identicon)[TimGa](/maintainers/TimGa)

---

Top Contributors

[![TimGa](https://avatars.githubusercontent.com/u/35343569?v=4)](https://github.com/TimGa "TimGa (6 commits)")

### Embed Badge

![Health badge](/badges/timga-php-translo/health.svg)

```
[![Health](https://phpackages.com/badges/timga-php-translo/health.svg)](https://phpackages.com/packages/timga-php-translo)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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