PHPackages                             pasyonis/translationhub - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. pasyonis/translationhub

ActiveLibrary[Localization &amp; i18n](/categories/localization)

pasyonis/translationhub
=======================

TranslationHUB Api Client For PHP

v1.0.4(9y ago)034BSDPHPPHP &gt;=5.3.0

Since Nov 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/bocek/translationhub)[ Packagist](https://packagist.org/packages/pasyonis/translationhub)[ RSS](/packages/pasyonis-translationhub/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (6)Used By (0)

TranslationHUB PHP Library (for the [TranslationHUb API](http://translationhub.com/api/))
=========================================================================================

[](#translationhub-php-library-for-the-translationhub-api)

This package contains a client library for accessing the TranslationHUB API

Installation &amp; Requirements
-------------------------------

[](#installation--requirements)

Installing the library is simple. Just add it to "require" of your composer.json

Composer
--------

[](#composer)

Our library can be installed using [composer](http://getcomposer.org/). Simply add `pasyonis/translationhub` to your composer.json file.

```
{
    "require": {
        "pasyonis/translationhub": "*"
    }
}

```

Then inside of your code you can call:

```
require __DIR__.'/vendor/autoload.php';
use Translationhub\Project;
use Translationhub\Config;
use Translationhub\Translation;
use Translationhub\Job;

\TranslationHub\Config::setEmail("your_email");
\TranslationHub\Config::setPassword("your_password");

$response = $projectApi->createProject(array(
		"source_language_id"=>"tr",
		"target_language_ids"=>"en,de",
		"quality"=>"basic",
		"callback_url"=>"http://mysite.com/postBack",
		"project_url"=>"http://mysite.com",
		"extras"=>array("id"=>"MyProjectId","type"=>"product description")
));

if($response->status=="error"){
	//lets see what is the error
	echo "There is an error : ".$response->errorMessage;
	echo "Error details\n";
	print_r($response->errors);
}
else {
	//ok lets start to post  my product description translations
	$projectId = $response->project->id;

	$response = $translationApi->postTranslation(array(
		"project_id"=>$projectId,
		"text_to_translate"=>"Merhaba, benim adım Aleyna. Merhaba, benim adım Aleyna. Nabersin ?", //there is two same sentences, i wonder if it will count it as once
		"extras" => array("id"=>"MyDatabaseRowId","type"=>"Product Desc")
	));

	if($response->status=="error"){
		echo "There is an error : ".$response->errorMessage;
		echo "Error details\n";
		print_r($response->errors);
	}else {
		echo "My Jobs Are, checkout word counts before analysis\n";
		print_r($response->jobs);
	}

	// i will wait little bit to let them be analysed
	echo "waiting to be analysed";

	sleep(15);

	//Lets get our job details and analysis results
	$response = $projectApi->getTranslationJobs($projectId);
	print_r($response);
	if($response->status="success"){
		foreach ($response->jobs as $job){
			$wholeJob = $jobApi->getJob($job->id);
			echo "job is \n";
			print_r($wholeJob);
			$analyseResult = $jobApi->getAnalysis($job->id);
			echo "job analysis result\n";
			print_r($analyseResult);
		}
	}
	print_r($response);

}
```

Question, Comments, Complaints
------------------------------

[](#question-comments-complaints)

If you have questions or comments and would like to reach us directly, We would love to hear from developers.

- Email: info \[at\] pasyonis dot com

If you come across any issues, please file them on the [Github project issue tracker](https://github.com/pasyonis/translationhub/issues). Thanks!

Documentation
-------------

[](#documentation)

Check out the full [TranslationHub API documentation](http://translationhub.com/documentation).

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~6 days

Total

5

Last Release

3494d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3293668?v=4)[bocek](/maintainers/bocek)[@bocek](https://github.com/bocek)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/pasyonis-translationhub/health.svg)

```
[![Health](https://phpackages.com/badges/pasyonis-translationhub/health.svg)](https://phpackages.com/packages/pasyonis-translationhub)
```

###  Alternatives

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

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