PHPackages                             osw3/symfony-locale-tools - 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. osw3/symfony-locale-tools

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

osw3/symfony-locale-tools
=========================

0.0.8(3mo ago)059PHP

Since Jan 30Pushed 3mo agoCompare

[ Source](https://github.com/OSW3/symfony-locale-tools)[ Packagist](https://packagist.org/packages/osw3/symfony-locale-tools)[ RSS](/packages/osw3-symfony-locale-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

Locale Tools
============

[](#locale-tools)

Install
-------

[](#install)

```
composer require OSW3/symfony-locale-tool
```

Config
------

[](#config)

`config/packages/translations.yaml`

```
framework:
    enabled_locales: ['en', 'nl', 'fr', 'it', 'no']
    default_locale: en
    translator:
        default_path: '%kernel.project_dir%/translations'
        fallbacks:
            - en
            - fr
        providers:
```

`config/routes.yaml`

```
controllers:
    resource: routing.controllers
    prefix: '/{_locale}'
    requirements:
        _locale: 'en|nl|fr|it|no'
```

`config/services.yaml`

```
services:
    OSW3\LocaleTools\EventSubscriber\LocaleNegotiationSubscriber:
        tags:
            - { name: 'kernel.event_subscriber' }
```

Services
--------

[](#services)

```
$localeToolsService->getCurrent() // string
$localeToolsService->getDefault() // string
$localeToolsService->getAvailable() // array[code, name]
```

Twig
----

[](#twig)

```
{{ locale_current() }}
{{ locale_default() }}
{{ locale_available() }}
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance81

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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

8

Last Release

99d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fb494ca5da6d3783e7ccfa656354d43d111a024b573051f5ca8f922b0d386ca?d=identicon)[osw3](/maintainers/osw3)

---

Top Contributors

[![ArnaudBDL](https://avatars.githubusercontent.com/u/53226044?v=4)](https://github.com/ArnaudBDL "ArnaudBDL (8 commits)")

### Embed Badge

![Health badge](/badges/osw3-symfony-locale-tools/health.svg)

```
[![Health](https://phpackages.com/badges/osw3-symfony-locale-tools/health.svg)](https://phpackages.com/packages/osw3-symfony-locale-tools)
```

###  Alternatives

[willdurand/js-translation-bundle

A pretty nice way to expose your translation messages to your JavaScript.

58917.1M55](/packages/willdurand-js-translation-bundle)[php-translation/symfony-bundle

3244.1M9](/packages/php-translation-symfony-bundle)[sonata-project/intl-bundle

Symfony SonataIntlBundle

2159.0M48](/packages/sonata-project-intl-bundle)[lunetics/locale-bundle

A Bundle for switching Languages

1861.1M8](/packages/lunetics-locale-bundle)[elegantly/laravel-translator

All on one translations management for Laravel

6216.9k](/packages/elegantly-laravel-translator)[sylius/locale

Locale handling for PHP applications.

10530.4k17](/packages/sylius-locale)

PHPackages © 2026

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