PHPackages                             exercise/google-translate-bundle - 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. exercise/google-translate-bundle

ActiveSymfony-bundle[Localization &amp; i18n](/categories/localization)

exercise/google-translate-bundle
================================

This bundle include service for translate with Google Translate and command which translate messages in your Bundles

14.8k3PHP

Since May 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/spolischook/GoogleTranslateBundle)[ Packagist](https://packagist.org/packages/exercise/google-translate-bundle)[ RSS](/packages/exercise-google-translate-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

GoogleTranslateBundle [![Build Status](https://camo.githubusercontent.com/cca2752dbd47c0cc2936d25cb07284c7adafe0c9d909d843b809fec785d5dc1c/68747470733a2f2f7472617669732d63692e6f72672f73706f6c697363686f6f6b2f476f6f676c655472616e736c61746542756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/spolischook/GoogleTranslateBundle)[![knpbundles.com](https://camo.githubusercontent.com/6f3c4e783a7a0a5ebb0bfb732dc1f7416cb4dc94ec9ca753acd89ccaf405b3c8/687474703a2f2f6b6e7062756e646c65732e636f6d2f45786572636973652f476f6f676c655472616e736c61746542756e646c652f62616467652d73686f7274)](http://knpbundles.com/Exercise/GoogleTranslateBundle)
=======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#googletranslatebundle-)

About Bundle
------------

[](#about-bundle)

This bundle include service for translate with Google Translate and command which translate messages in your Bundles

Install
-------

[](#install)

### A) Add GoogleTranslateBundle to your composer.json

[](#a-add-googletranslatebundle-to-your-composerjson)

```
{
    "require": {
        "exercise/google-translate-bundle": "*"
    }
}
```

### B) Enable the bundle

[](#b-enable-the-bundle)

Enable the bundle in the your kernel:

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Exercise\GoogleTranslateBundle\ExerciseGoogleTranslateBundle(),
    );
}
```

### C) Configuration

[](#c-configuration)

Enter your private api key in configuration

```
# app/config/config.yml
exercise_google_translate:
    api_key: your_api_key
```

Usage
-----

[](#usage)

You can it use as a service

```
// Acme/DemoBundle/Controller/WelcomeController.php

public function indexAction() {

    ...

    $translator = $this->get('exercise_google_translate.translator');
    $translatedString = $translator->translate('Hello World!', 'en', 'fr');

    // Bonjour tout le monde!
    return new Response($translatedString);
}
```

or you can use console command to translate messages

```
app/console gtranslate:translate en fr AcmeDemoBundle
```

Bug tracking
------------

[](#bug-tracking)

GoogleTranslateBundle uses [GitHub issues](https://github.com/Exercise/GoogleTranslateBundle/issues). If you have found bug, please create an issue.

License
-------

[](#license)

This bundle is under the MIT license. See the complete license in LICENSE.md

[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/exercise/google-translate-bundle)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% 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://www.gravatar.com/avatar/82a09396758cec14e1d4b4d187bcc6480b03a55efc80c575a35c04f2b4c0b076?d=identicon)[fesja](/maintainers/fesja)

---

Top Contributors

[![spolischook](https://avatars.githubusercontent.com/u/1978331?v=4)](https://github.com/spolischook "spolischook (36 commits)")[![albertofem](https://avatars.githubusercontent.com/u/409472?v=4)](https://github.com/albertofem "albertofem (2 commits)")[![jmmerino](https://avatars.githubusercontent.com/u/1152640?v=4)](https://github.com/jmmerino "jmmerino (2 commits)")[![Remiii](https://avatars.githubusercontent.com/u/659383?v=4)](https://github.com/Remiii "Remiii (2 commits)")[![jamesmoss](https://avatars.githubusercontent.com/u/629766?v=4)](https://github.com/jamesmoss "jamesmoss (1 commits)")[![wizardz](https://avatars.githubusercontent.com/u/306944?v=4)](https://github.com/wizardz "wizardz (1 commits)")

### Embed Badge

![Health badge](/badges/exercise-google-translate-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/exercise-google-translate-bundle/health.svg)](https://phpackages.com/packages/exercise-google-translate-bundle)
```

###  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.

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

labels translated to spanish

166.8k](/packages/laradevs-spanish)

PHPackages © 2026

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