PHPackages                             deanc/silex-web-translator - 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. [Admin Panels](/categories/admin)
4. /
5. deanc/silex-web-translator

AbandonedArchivedLibrary[Admin Panels](/categories/admin)

deanc/silex-web-translator
==========================

A boilerplate to get started with silex

3141[7 issues](https://github.com/deanc/silex-web-translator/issues)HTML

Since Oct 14Pushed 10y ago2 watchersCompare

[ Source](https://github.com/deanc/silex-web-translator)[ Packagist](https://packagist.org/packages/deanc/silex-web-translator)[ RSS](/packages/deanc-silex-web-translator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Silex Web Translator
====================

[](#silex-web-translator)

Introduction
------------

[](#introduction)

This Silex Provider allows you to easily manage the translation files for your app via a web-based interface. Current features include:

- Dashboard for a quick overview of the current status of translations for your app including total translations, total locales and total untranslated strings.

[![dashboard](https://github.com/deanc/silex-web-translator/raw/master/screenshots/dashboard.png)](https://github.com/deanc/silex-web-translator/raw/master/screenshots/dashboard.png)

- A simple editor for translation strings, allowing you to quickly see which translation strings are missing for each locale

[![translation screen 1](https://github.com/deanc/silex-web-translator/raw/master/screenshots/translations_primary.png)](https://github.com/deanc/silex-web-translator/raw/master/screenshots/translations_primary.png)[![translation screen 2](https://github.com/deanc/silex-web-translator/raw/master/screenshots/translations_secondary.png)](https://github.com/deanc/silex-web-translator/raw/master/screenshots/translations_secondary.png)

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

[](#requirements)

- PHP 5.4+
- Using YAML files for your translations. They *must* be formatted as `..yml`. If you aren't using the domains featured of the Symfony `Translation` component then make sure you name your translation files `messages..yml`.
- For all usage of locales in your app use the ISO 639-1 language code, an underscore (\_), then the ISO 3166-1 alpha-2 country code (e.g. fr\_FR for French/France).
- Make sure you configure *all* locales as fallbacks when setting up the `TranslationProvider`.

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

[](#installation)

- Configuration the default Silex TranslationServiceProvider in a similar way:

```
$app['locale'] = 'en_GB';
$app->register(new Silex\Provider\TranslationServiceProvider(), array(
    'locale_fallbacks' => array('en_GB', 'fr_FR', 'fi_FI'),
));

$app['translator'] = $app->share($app->extend('translator', function($translator, $app) {

    $translator->addLoader('yaml', new Symfony\Component\Translation\Loader\YamlFileLoader());

    $translator->addResource('yaml', __DIR__.'/../translations/messages.en_GB.yml', 'en_GB');
    $translator->addResource('yaml', __DIR__.'/../translations/messages.fr_FR.yml', 'fr_FR');
    $translator->addResource('yaml', __DIR__.'/../translations/messages.fi_FI.yml', 'fi_FI');
    $translator->addResource('yaml', __DIR__.'/../translations/rules.en_GB.yml', 'en_GB', 'rules');

    return $translator;
}));
```

- Make sure you are using and have registered the following service providers:

```
$app->register(new Silex\Provider\ServiceControllerServiceProvider());
$app->register(new Silex\Provider\UrlGeneratorServiceProvider());
$app->register(new Silex\Provider\FormServiceProvider());
$app->register(new Silex\Provider\ValidatorServiceProvider());
$app->register(new Silex\Provider\TwigServiceProvider());
```

- Register the service provider and configure the options

```
$app['webtranslator.options'] = array(
    'translator_file_path' => __DIR__ . '/../translations/'
);
$app->register(new DC\WebTranslator\Provider\WebTranslatorServiceProvider());
```

- Mount the controller provider

```
$app->mount('/webtranslator', new DC\WebTranslator\Controller\WebTranslatorControllerProvider());
```

FAQ
---

[](#faq)

How to protect the interface with user authentication?

- You can protect the route you mount the controller on, as you would any other route, using the Symfony security component.

Known issues
------------

[](#known-issues)

- If you import nested YML files with pretty new line (pipe) syntax, it will replace new lines with \\r\\n

Thanks/Credits
--------------

[](#thankscredits)

- Big thanks to StartBootstrap for a few styles for the admin:

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![deanc](https://avatars.githubusercontent.com/u/232423?v=4)](https://github.com/deanc "deanc (10 commits)")

---

Tags

dashboardi18nphpsilexsilex-providersilex2translation-management

### Embed Badge

![Health badge](/badges/deanc-silex-web-translator/health.svg)

```
[![Health](https://phpackages.com/badges/deanc-silex-web-translator/health.svg)](https://phpackages.com/packages/deanc-silex-web-translator)
```

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

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