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↑1700%MITPHPPHP &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 today

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

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 67% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community6

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

4603d 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

[jms/translation-bundle

Puts the Symfony Translation Component on steroids

42510.7M56](/packages/jms-translation-bundle)[a2lix/translation-form-bundle

Translate your doctrine objects easily with some helpers

3436.9M37](/packages/a2lix-translation-form-bundle)[contributte/translation

Symfony/Translation integration for Nette Framework.

781.7M29](/packages/contributte-translation)[kdyby/translation

Integration of Symfony/Translation into Nette Framework

891.2M22](/packages/kdyby-translation)[symfony/crowdin-translation-provider

Symfony Crowdin Translation Provider Bridge

13466.8k1](/packages/symfony-crowdin-translation-provider)[m2mtech/weblate-translation-provider

Symfony Weblate Translation Provider Bridge

1926.6k](/packages/m2mtech-weblate-translation-provider)

PHPackages © 2026

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