PHPackages                             pervozdanniy/translation-client - 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. pervozdanniy/translation-client

ActiveLibrary[API Development](/categories/api)

pervozdanniy/translation-client
===============================

Client for translation API

2.1.1(5y ago)078123MITPHPPHP ^7.2

Since Dec 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pervozdanniy/translation-client)[ Packagist](https://packagist.org/packages/pervozdanniy/translation-client)[ Docs](http://dev-api.translate.center/api-docs/)[ RSS](/packages/pervozdanniy-translation-client/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (6)Used By (3)

Translate API PHP HTTP client
=============================

[](#translate-api-php-http-client)

[![Latest Stable Version](https://camo.githubusercontent.com/3aabce905bf48aa570800d93baf3acf778bb5ea38c6b250994626ca122a487c7/68747470733a2f2f706f7365722e707567782e6f72672f706572766f7a64616e6e69792f7472616e736c6174696f6e2d636c69656e742f762f737461626c65)](https://packagist.org/packages/pervozdanniy/translation-client)[![Total Downloads](https://camo.githubusercontent.com/49bc23e093bd4157f1a23437ff3b76170ecbd814b9dd7e29f635ec693d5b7fb9/68747470733a2f2f706f7365722e707567782e6f72672f706572766f7a64616e6e69792f7472616e736c6174696f6e2d636c69656e742f646f776e6c6f616473)](https://camo.githubusercontent.com/49bc23e093bd4157f1a23437ff3b76170ecbd814b9dd7e29f635ec693d5b7fb9/68747470733a2f2f706f7365722e707567782e6f72672f706572766f7a64616e6e69792f7472616e736c6174696f6e2d636c69656e742f646f776e6c6f616473)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Translate API is a PSR-compatible PHP HTTP client for working with translate API.

[API Documentation](http://dev-api.translate.center/api-docs/)

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

[](#installation)

The recommended way to install Translate API client is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of Guzzle:

```
composer require pervozdanniy/translation-client
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

You can then later update Guzzle using composer:

```
composer update
```

Usage
-----

[](#usage)

```
$options = [
    'login' => '',
    'password' => '',
];
// you can pass any storage you want that implements \Psr\SimpleCache\CacheInterface
$client = new \Translate\ApiClient($options, new \Translate\Storage\ArrayStorage);
$response = $client->request('GET', 'users');

echo $response->getStatusCode(); # 200
echo $response->getHeaderLine('content-type'); # 'application/json; charset=utf8'
echo $response->getBody(); # '{"items": [{"uuid": ...}'
```

#### Aliases

[](#aliases)

Client also resolves aliases, received from login request:

```
$response = $client->request('GET', 'users/{userUuid}/projects');
```

For authenticated user 2 aliases are available by default: `userUuid` and `authToken`

You can add your own aliases using:

```
$client->setAlias('projectUuid', '');
// use user-defined alias
$response = $client->request('GET', 'projects/{projectUuid}/languages');
```

#### Available Options

[](#available-options)

OptionDescriptionDefault valueloginYour API login (required)nullpasswordYour API password (required)nullapiAPI base urimaxAttemptsNumber of attempts to reauthenticate to API on 401 response code3

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

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.

###  Release Activity

Cadence

Every ~84 days

Total

5

Last Release

1996d ago

Major Versions

v1.0.0 → v2.0.12020-03-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/92245b9c9f4b005adba4813db807b4786a50a3a2025dff137137cb798fa1de5e?d=identicon)[pervozdanniy](/maintainers/pervozdanniy)

---

Top Contributors

[![pervozdanniy](https://avatars.githubusercontent.com/u/19916993?v=4)](https://github.com/pervozdanniy "pervozdanniy (12 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/pervozdanniy-translation-client/health.svg)

```
[![Health](https://phpackages.com/badges/pervozdanniy-translation-client/health.svg)](https://phpackages.com/packages/pervozdanniy-translation-client)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

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

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)[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)
