PHPackages                             elkuku/g11n-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. elkuku/g11n-bundle

ActiveSymfony-bundle

elkuku/g11n-bundle
==================

Symfony G11n Bundle

0.1.2(7y ago)177WTFPLPHPPHP ^7.1.3

Since Jul 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/elkuku/g11n-bundle)[ Packagist](https://packagist.org/packages/elkuku/g11n-bundle)[ RSS](/packages/elkuku-g11n-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (7)Versions (6)Used By (0)

G11n Bundle
-----------

[](#g11n-bundle)

The G11n bundle integrates the [G11n language library](https://github.com/elkuku/g11n) into Synfony projects.

### Installation

[](#installation)

```
composer require elkuku/g11n-bundle

```

If you are **not** using Flex add

```
# /config.bundles.php
    ...
    ElKuKu\G11nBundle\ElKuKuG11nBundle::class => ['all' => true],
    ...
```

### Usage

[](#usage)

See the [G11n Wiki](https://github.com/elkuku/g11n/wiki) for general information.

#### Twig

[](#twig)

A shorthand function `_()` is provided for usage in twig templates

```
{{ _('Translate this string') }}
```

### Configuration

[](#configuration)

#### Default values

[](#default-values)

- Default language: `en-GB`
- Debug: `off`

To change those values create the file

```
# /config/packages/elkuku_g11n.yaml
elkuku_g11n:
  defaultLang: en-GB
  debug: false
```

### Commands

[](#commands)

#### `g11n:templates`

[](#g11ntemplates)

Create or update the language template files.

#### `g11n:langfiles`

[](#g11nlangfiles)

Create or update the language files.

### Templates

[](#templates)

#### Language switcher

[](#language-switcher)

There is a simple language switcher template that you might take as a ... template ;)

```
{% import "@ElKuKuG11n/_macro/g11n.html.twig" as g11n %}
...
{{ g11n.switcher(getLangs(), getCurrentLang()) }}
```

### Debugging

[](#debugging)

Te enable debugging set the `debug` flag in the config file to `1`.

\[screenshot\]

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Every ~1 days

Total

5

Last Release

2852d ago

### Community

Maintainers

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

---

Top Contributors

[![elkuku](https://avatars.githubusercontent.com/u/33978?v=4)](https://github.com/elkuku "elkuku (22 commits)")

### Embed Badge

![Health badge](/badges/elkuku-g11n-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/elkuku-g11n-bundle/health.svg)](https://phpackages.com/packages/elkuku-g11n-bundle)
```

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k172.9M1.8k](/packages/symfony-security-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)

PHPackages © 2026

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