PHPackages                             herrera-io/silex-translation-files - 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. herrera-io/silex-translation-files

AbandonedArchivedLibrary[Localization &amp; i18n](/categories/localization)

herrera-io/silex-translation-files
==================================

A Silex service provider for using translation files.

1.1.0(12y ago)24.6k↓90%1MITPHPPHP &gt;=5.3.3

Since Aug 15Pushed 12y agoCompare

[ Source](https://github.com/kherge-archive/php-silex-translation-files)[ Packagist](https://packagist.org/packages/herrera-io/silex-translation-files)[ Docs](https://github.com/herrera-io/php-silex-translation-files)[ RSS](/packages/herrera-io-silex-translation-files/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (6)Versions (3)Used By (1)

Translation Files
=================

[](#translation-files)

[![Build Status](https://camo.githubusercontent.com/2b3cbe1b7f8b9967dab65af9d58565602bc1b4c194c251f6978c5f26e346d964/68747470733a2f2f7472617669732d63692e6f72672f686572726572612d696f2f7068702d73696c65782d7472616e736c6174696f6e2d66696c65732e706e67)](https://travis-ci.org/herrera-io/php-silex-translation-files)

This is a [Silex](http://silex.sensiolabs.org/) service provider that extends the existing Translation service in order to more easily support the use of translation files. You can specify the loader, the files, and the locales all as a parameter.

Example
-------

[](#example)

```
use Herrera\Silex\Provider\TranslationServiceProvider;
use Silex\Application;

$app = new Application();

$app->register(
    new TranslationServiceProvider(),
    array(
        'translation.files' => array(
            'Symfony\\Component\\Translation\\Loader\\YamlFileLoader' => array(
                '/path/to/file.de.yml' => 'de',
                '/path/to/file.en.yml' => 'en',
                '/path/to/file.fr.yml' => 'fr'
            )
        )
    )
);

$translated = $app['translator']->trans($key);
```

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

[](#installation)

Use Composer:

```
$ composer.phar require "herrera-io/silex-translation-files=~1.0"

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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 ~0 days

Total

2

Last Release

4699d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9122157?v=4)[Kevin Herrera](/maintainers/kherge)[@kherge](https://github.com/kherge)

---

Top Contributors

[![kherge](https://avatars.githubusercontent.com/u/9122157?v=4)](https://github.com/kherge "kherge (6 commits)")

---

Tags

translationsilex

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/herrera-io-silex-translation-files/health.svg)

```
[![Health](https://phpackages.com/badges/herrera-io-silex-translation-files/health.svg)](https://phpackages.com/packages/herrera-io-silex-translation-files)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M376](/packages/easycorp-easyadmin-bundle)[jms/translation-bundle

Puts the Symfony Translation Component on steroids

42411.0M74](/packages/jms-translation-bundle)[contributte/translation

Symfony/Translation integration for Nette Framework.

771.8M49](/packages/contributte-translation)[symfony/crowdin-translation-provider

Symfony Crowdin Translation Provider Bridge

13534.4k1](/packages/symfony-crowdin-translation-provider)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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