PHPackages                             saxulum/saxulum-translation-provider - 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. saxulum/saxulum-translation-provider

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

saxulum/saxulum-translation-provider
====================================

Saxulum Translation Provider (yaml)

2.2.0(10y ago)16.3k21MITPHPPHP &gt;=5.3.9,&lt;8.0

Since Jan 29Pushed 8y agoCompare

[ Source](https://github.com/saxulum-legacy/saxulum-translation-provider)[ Packagist](https://packagist.org/packages/saxulum/saxulum-translation-provider)[ RSS](/packages/saxulum-saxulum-translation-provider/feed)WikiDiscussions v1 Synced today

READMEChangelog (2)Dependencies (6)Versions (14)Used By (1)

saxulum-translation-provider
============================

[](#saxulum-translation-provider)

**works with plain silex-php**

[![Build Status](https://camo.githubusercontent.com/f0619c958e0c3ffb7f222b2f66d64617498e0c75f0f0b59f527ad560c3bd07a1/68747470733a2f2f6170692e7472617669732d63692e6f72672f736178756c756d2f736178756c756d2d7472616e736c6174696f6e2d70726f76696465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/saxulum/saxulum-translation-provider)[![Total Downloads](https://camo.githubusercontent.com/34a26184606109cedb367d27feb6204b8bc6bd79fbf448270d9725a8a9e8f68e/68747470733a2f2f706f7365722e707567782e6f72672f736178756c756d2f736178756c756d2d7472616e736c6174696f6e2d70726f76696465722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/saxulum/saxulum-translation-provider)[![Latest Stable Version](https://camo.githubusercontent.com/2dc9154af0d3f31f7394a9da50f1f8a53decc6072d3df7987c6e97a3614c14ae/68747470733a2f2f706f7365722e707567782e6f72672f736178756c756d2f736178756c756d2d7472616e736c6174696f6e2d70726f76696465722f762f737461626c652e706e67)](https://packagist.org/packages/saxulum/saxulum-translation-provider)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2440f5f5f164462dca6d46e02c2bd6a44b2641b252dcbbc5c1058eafd19c2cdd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736178756c756d2f736178756c756d2d7472616e736c6174696f6e2d70726f76696465722f6261646765732f7175616c6974792d73636f72652e706e673f733d34353239653137643234653064333661613731373832636633396233376535366464343233613862)](https://scrutinizer-ci.com/g/saxulum/saxulum-translation-provider/)

Features
--------

[](#features)

- Register translations

Requirements
------------

[](#requirements)

- php &gt;=5.3
- Symfony Config Component &gt;=2.3
- Symfony Finder Component &gt;=2.3
- Symfony Translation Component &gt;=2.3
- Symfony Yaml Component &gt;=2.3

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

[](#installation)

Through [Composer](http://getcomposer.org) as [saxulum/saxulum-translation-provider](https://packagist.org/packages/saxulum/saxulum-translation-provider).

Silex
-----

[](#silex)

### With translation cache (faster)

[](#with-translation-cache-faster)

```
use Saxulum\Translation\Silex\Provider\TranslationProvider;
use Silex\Provider\TranslationServiceProvider;

$app->register(new TranslationServiceProvider());
$app->register(new TranslationProvider(), array(
    'translation_cache' => '/path/to/cache'
));

```

- `debug == true`: the cache file will be build at each load
- `debug == false`: the cache file will be build if not exists, delete it if its out of sync

### Without translation cache (slower)

[](#without-translation-cache-slower)

```
use Saxulum\Translation\Silex\Provider\TranslationProvider;
use Silex\Provider\TranslationServiceProvider;

$app->register(new TranslationServiceProvider());
$app->register(new TranslationProvider());

```

Cilex
-----

[](#cilex)

You need a service with key `translator` which implements `Symfony\Component\Translation\Translator`. There is the [silex](https://github.com/silexphp/Silex/blob/1.2/src/Silex/Provider/TranslationServiceProvider.php) ones as an example.

### With translation cache (faster)

[](#with-translation-cache-faster-1)

```
use Saxulum\Translation\Cilex\Provider\TranslationProvider;

$app['translator'] = $app->share(function(){
    return new Translator;
});

$app->register(new TranslationProvider(), array(
    'translation_cache' => '/path/to/cache'
));

```

- `debug == true`: the cache file will be build at each load
- `debug == false`: the cache file will be build if not exists, delete it if its out of sync

### Without translation cache (slower)

[](#without-translation-cache-slower-1)

```
use Saxulum\Translation\Cilex\Provider\TranslationProvider;

$app['translator'] = $app->share(function(){
    return new Translator;
});

$app->register(new TranslationProvider());

```

Usage
-----

[](#usage)

### Add the translation paths

[](#add-the-translation-paths)

```
$app['translation_paths'] = $app->share($app->extend('translation_paths', function ($paths) {
    $paths[] = '/path/to/the/translations';

    return $paths;
}));

```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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 ~128 days

Recently: every ~213 days

Total

13

Last Release

2944d ago

Major Versions

1.0.4 → 2.0.02014-10-09

1.1.0 → 2.1.02015-12-19

1.1.1 → 2.2.02016-04-28

PHP version history (3 changes)1.0.0PHP &gt;=5.3.3

1.1.0PHP &gt;=5.3.3,&lt;8.0

2.1.1PHP &gt;=5.3.9,&lt;8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/55048de83ca5e5d8c67164a19c78edcaad413b0c1a4ae10d92edf8d77bedd90f?d=identicon)[dominikzogg](/maintainers/dominikzogg)

---

Top Contributors

[![dominikzogg](https://avatars.githubusercontent.com/u/1011217?v=4)](https://github.com/dominikzogg "dominikzogg (15 commits)")[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (1 commits)")

---

Tags

translationyamlsilexpimplecilexsaxulum

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/saxulum-saxulum-translation-provider/health.svg)

```
[![Health](https://phpackages.com/badges/saxulum-saxulum-translation-provider/health.svg)](https://phpackages.com/packages/saxulum-saxulum-translation-provider)
```

###  Alternatives

[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4362.7M19](/packages/lexik-translation-bundle)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[symfony/crowdin-translation-provider

Symfony Crowdin Translation Provider Bridge

13488.9k1](/packages/symfony-crowdin-translation-provider)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)[webfactory/icu-translation-bundle

Enables ICU message formatting for translations in Symfony applications.

2761.8k](/packages/webfactory-icu-translation-bundle)

PHPackages © 2026

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