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

ActiveSymfony-bundle

runnin4ik/symfony-google-translate-bundle
=========================================

Symfony Translator using google

v1.0.0(1y ago)02MITPHPPHP ^8.2.0

Since Mar 10Pushed 1y agoCompare

[ Source](https://github.com/Runnin4ik/symfony-google-translate)[ Packagist](https://packagist.org/packages/runnin4ik/symfony-google-translate-bundle)[ Docs](https://github.com/runnin4ik/symfony-google-translate)[ RSS](/packages/runnin4ik-symfony-google-translate-bundle/feed)WikiDiscussions main Synced 1mo ago

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

Symfony | Free Google Translator Bundle based on
============================================================================================================

[](#symfony--free-google-translator-bundle-based-on-httpsgithubcomsabrihamdash-google-translator-bundle)

> 5000 words maximum

This bundle will allow you to translate your symfony application instantly and with a single command line in all languages ​​supported by google.

Installing / Getting started
----------------------------

[](#installing--getting-started)

To use this bundle you would need two symfony4 components.
`Twig & Translations.`
Cause the bundle will looking for `{{'the string to translate'|trans}}` in the `/Templates` directory by fetching all files with the `.twig` extension.

### Installation with composer

[](#installation-with-composer)

Using [symfony/flex](https://github.com/symfony/flex).

> 1 - Install Twig

```
php composer require twig
```

> 2 - Install Translations

```
php composer require translations
```

> Finaly - Install Google Translator Bundle

```
php composer require sabrihamda/google-translator-bundle
```

### Initial Configuration

[](#initial-configuration)

> Templates

To safly start with this bundle, be sure that all the words to be translated are passed to the Translations component like this:
`{{ 'string to translate'|trans }}`

> Example:
> [![](https://camo.githubusercontent.com/aa4060d4358f0c461f2896ab161677ecae70497aac76c5ed1a0400eaf94341ee/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f68616d64612d63682f696d6167652f75706c6f61642f635f7363616c652c665f6175746f2c715f3130302c775f313030302f76313535363635343531312f4749544855422f474f4f474c452d5452414e534c41544f522f747769672d6578616d706c652d312e706e67)](https://camo.githubusercontent.com/aa4060d4358f0c461f2896ab161677ecae70497aac76c5ed1a0400eaf94341ee/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f68616d64612d63682f696d6167652f75706c6f61642f635f7363616c652c665f6175746f2c715f3130302c775f313030302f76313535363635343531312f4749544855422f474f4f474c452d5452414e534c41544f522f747769672d6578616d706c652d312e706e67)

> Config

Go to `./config/packages/translation.yaml` and add your target languages.

> Example:
> [![](https://camo.githubusercontent.com/de8f011ac934c4a2609c496b37f1589b68f8f17d1eadba2726cf04c9b379291b/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f68616d64612d63682f696d6167652f75706c6f61642f635f7363616c652c665f6175746f2c715f3130302c775f313030302f76313535363635343531312f4749544855422f474f4f474c452d5452414e534c41544f522f7472616e736c6174696f6e2d6578616d706c652d312e706e67)](https://camo.githubusercontent.com/de8f011ac934c4a2609c496b37f1589b68f8f17d1eadba2726cf04c9b379291b/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f68616d64612d63682f696d6167652f75706c6f61642f635f7363616c652c665f6175746f2c715f3130302c775f313030302f76313535363635343531312f4749544855422f474f4f474c452d5452414e534c41544f522f7472616e736c6174696f6e2d6578616d706c652d312e706e67)

That's it :)

### Run the command

[](#run-the-command)

Go to your command line and run the command:

```
php bin/console google:translate
```

[![](https://camo.githubusercontent.com/2a3414c4947923fc64d1f32e7ff8ca6ef4846fc54feb50b000ca1d86ff31b255/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f68616d64612d63682f696d6167652f75706c6f61642f635f7363616c652c665f6175746f2c715f3130302c775f313030302f76313535363635343531312f4749544855422f474f4f474c452d5452414e534c41544f522f636f6d6d616e642d6c696e652d6578616d706c652d312e706e67)](https://camo.githubusercontent.com/2a3414c4947923fc64d1f32e7ff8ca6ef4846fc54feb50b000ca1d86ff31b255/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f68616d64612d63682f696d6167652f75706c6f61642f635f7363616c652c665f6175746f2c715f3130302c775f313030302f76313535363635343531312f4749544855422f474f4f474c452d5452414e534c41544f522f636f6d6d616e642d6c696e652d6578616d706c652d312e706e67)

All the messages files will be generated in the `./translation` directory.

Licensing
---------

[](#licensing)

> The code in this project is licensed under MIT license.

Copyright (c) 2024 Jonathan Kashongwe

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance45

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.6% 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

428d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1822a3785c4932a500069e458d65a81fec49c197012139df125b724f46a1d68b?d=identicon)[Runnin4ik](/maintainers/Runnin4ik)

---

Top Contributors

[![SabriHamda](https://avatars.githubusercontent.com/u/32013306?v=4)](https://github.com/SabriHamda "SabriHamda (36 commits)")[![jokashongwe](https://avatars.githubusercontent.com/u/34185597?v=4)](https://github.com/jokashongwe "jokashongwe (14 commits)")[![Runnin4ik](https://avatars.githubusercontent.com/u/17353325?v=4)](https://github.com/Runnin4ik "Runnin4ik (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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