PHPackages                             adcog-cpi/translation-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. adcog-cpi/translation-bundle

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

adcog-cpi/translation-bundle
============================

EBTranslationBundle

0.0.4(10y ago)08MITPHPPHP &gt;=5.5

Since Sep 28Pushed 3y ago2 watchersCompare

[ Source](https://github.com/adcog-cpi/translation-bundle)[ Packagist](https://packagist.org/packages/adcog-cpi/translation-bundle)[ Docs](https://github.com/emmanuelballery/EBTranslationBundle.git)[ RSS](/packages/adcog-cpi-translation-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

EBTranslationBundle
===================

[](#ebtranslationbundle)

This bundle helps me deal with links in my templates.

Default configuration
---------------------

[](#default-configuration)

```
# app/config/config.yml

eb_translation:
  # domain where translations are stored
  domain: messages
  # default locale
  locale: '%locale%'
  # add route name as class when generating a link
  use_route_as_class: false
  # replace underscores by points in route names to
  # find its translation : home_index => home.index
  # create array structures in Yaml
  replace_underscore: true
  # link translations prefix
  prefix: 'page.'
  # wether we have to track selected links by adding
  # a class when the route is the same as the current
  # route (the class to add, or null)
  track_selected_links: 'active'
```

Translation example base on the default configuration
-----------------------------------------------------

[](#translation-example-base-on-the-default-configuration)

```
# messages.fr.yml
page:
  home:
    name: 'Home page name'
    title: 'Home page title'
    description: 'Home page description'
```

Controller
----------

[](#controller)

```
// SomeController.php

/** @var EB\TranslationBundle\Translation $translation */
$translation = $this->get('eb_translation');

// Home page name
$translation->link('home');

// Home page name
$translation->link('home',{'page':1});

// something
$translation->link('home',{},{'name':'something'});

// Home page name
$translation->link('home',{},{'title':'something'});

// Home page name
$translation->link('home',{},{'class':'something'});

// Home page name
$translation->name('home');

// Home page title
$translation->title('home');

// Home page description
$translation->description('home');
```

Twig
----

[](#twig)

```
{# SomeTemplate.html.twig #}

{# @return 'Home page name' #}
{{ link('home') }}

{# @return 'Home page name' #}
{{ link('home',{'page':1}) }}

{# @return 'something' #}
{{ link('home',{},{'name':'something'}) }}

{# @return 'Home page name' #}
{{ link('home',{},{'title':'something'}) }}

{# @return 'Home page name' #}
{{ link('home',{},{'class':'something'}) }}

{# @return 'Home page name' #}
{{ name('home') }}

{# @return 'Home page title' #}
{{ title('home') }}

{# @return 'Home page description' #}
{{ description('home') }}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.2% 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 ~161 days

Total

4

Last Release

3757d ago

PHP version history (2 changes)0.0.1PHP &gt;=5.3.3

0.0.3PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/870c0276bbd50ec2e46112569f21cc0b897f9b39b69582b31928f9eb70adbdcc?d=identicon)[adcog-cpi](/maintainers/adcog-cpi)

---

Top Contributors

[![emmanuelballery](https://avatars.githubusercontent.com/u/1687685?v=4)](https://github.com/emmanuelballery "emmanuelballery (50 commits)")[![rrieunier](https://avatars.githubusercontent.com/u/15146996?v=4)](https://github.com/rrieunier "rrieunier (2 commits)")

### Embed Badge

![Health badge](/badges/adcog-cpi-translation-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/adcog-cpi-translation-bundle/health.svg)](https://phpackages.com/packages/adcog-cpi-translation-bundle)
```

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.0k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[illuminate/translation

The Illuminate Translation package.

6936.4M491](/packages/illuminate-translation)

PHPackages © 2026

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