PHPackages                             dejurin/php-google-translate-for-free - 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. dejurin/php-google-translate-for-free

ActiveLibrary[API Development](/categories/api)

dejurin/php-google-translate-for-free
=====================================

Library for free use Google Translator. With attempts connecting on failure and array support.

1.0.0(8y ago)13943.0k↓37%472GPL-3.0+PHPPHP &gt;=5.4

Since Mar 2Pushed 1y ago7 watchersCompare

[ Source](https://github.com/dejurin/php-google-translate-for-free)[ Packagist](https://packagist.org/packages/dejurin/php-google-translate-for-free)[ Docs](https://github.com/dejurin/php-google-translate-for-free)[ RSS](/packages/dejurin-php-google-translate-for-free/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (2)

GoogleTranslateForFree
======================

[](#googletranslateforfree)

Packagist:

[![version](https://camo.githubusercontent.com/da2027496943552107bae230fa71915ae63c896501e11369f1edf20db1dfcb22/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f64656a7572696e2f7068702d676f6f676c652d7472616e736c6174652d666f722d667265652e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/da2027496943552107bae230fa71915ae63c896501e11369f1edf20db1dfcb22/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f64656a7572696e2f7068702d676f6f676c652d7472616e736c6174652d666f722d667265652e7376673f7374796c653d666c6174)[![downloads](https://camo.githubusercontent.com/9f1babaa80ac3ce749ca5b72c96761014d24f8fe08642bdd4753792ba1771fd4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64656a7572696e2f7068702d676f6f676c652d7472616e736c6174652d666f722d667265652e7376673f7374796c653d666c6174)](https://packagist.org/packages/dejurin/php-google-translate-for-free)[![StyleCI](https://camo.githubusercontent.com/15f54dec51f5e003196d817903f823b0002db4a69d1ad3493581f21a27e25fb3/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3132333632323337392f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/123622379)

Library for free use Google Translator. With attempts connecting on failure and array support.

---

[!["Buy Me A Coffee"](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://buymeacoffee.com/deyurii)

---

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

[](#installation)

Install this package via [Composer](https://getcomposer.org/).

```
composer require dejurin/php-google-translate-for-free

```

Or edit your project's `composer.json` to require `dejurin/php-google-translate-for-free` and then run `composer update`.

```
"require": {
    "dejurin/php-google-translate-for-free": "^1.0"
}
```

Usage
-----

[](#usage)

```
require_once ('vendor/autoload.php');
use \Dejurin\GoogleTranslateForFree;
```

Single
------

[](#single)

```
$source = 'en';
$target = 'ro';
$attempts = 5;
$text = 'Hello';

$tr = new GoogleTranslateForFree();
$result = $tr->translate($source, $target, $text, $attempts);

var_dump($result);

/*
	string(24) "Salut"
*/
```

Array
-----

[](#array)

```
$source = 'en';
$target = 'ro';
$attempts = 5;
$arr = ['hello','world'];

$tr = new GoogleTranslateForFree();
$result = $tr->translate($source, $target, $arr, $attempts);

var_dump($result);

/*
	array(2) {
	  [0]=>
	  string(24) "salut"
	  [1]=>
	  string(6) "lume"
	}

*/
```

### License

[](#license)

This source code is distributed under [MIT](https://choosealicense.com/licenses/mit/) license.

---

Sponsors
--------

[](#sponsors)

###

[](#httpscurrencyratetoday)

###

[](#httpsmoneyconvertnet)

###

[](#httpsco-wio)

###

[](#httpsco-inio)

###

[](#httpsfx-wio)

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

2999d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9f4d5471241ff2125da720535d7bec0d1414076ae711a13520cb5d2ce6f9696?d=identicon)[Dejurin](/maintainers/Dejurin)

---

Top Contributors

[![dejurin](https://avatars.githubusercontent.com/u/4470015?v=4)](https://github.com/dejurin "dejurin (36 commits)")

---

Tags

detect-languagegoogle-translategoogle-translatorlanguage-detectionphptranslatetranslationtranslatorapitranslategoogletranslatorfree

### Embed Badge

![Health badge](/badges/dejurin-php-google-translate-for-free/health.svg)

```
[![Health](https://phpackages.com/badges/dejurin-php-google-translate-for-free/health.svg)](https://phpackages.com/packages/dejurin-php-google-translate-for-free)
```

###  Alternatives

[statickidz/php-google-translate-free

Google Translate Free library for PHP

289258.8k6](/packages/statickidz-php-google-translate-free)[eko/googletranslatebundle

A Symfony bundle to deals with Google Translate API

4337.1k](/packages/eko-googletranslatebundle)[ozankurt/google-analytics

Laravel Google Analytics

7616.7k](/packages/ozankurt-google-analytics)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)

PHPackages © 2026

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