PHPackages                             umpirsky/i18n-routing-bundle - 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. umpirsky/i18n-routing-bundle

ActiveSymfony-bundle[Localization &amp; i18n](/categories/localization)

umpirsky/i18n-routing-bundle
============================

Internationalized routing with minimal performance cost.

1.0.0(2y ago)36.8k↓25%1MITPHPPHP ^7.4|^8.0

Since May 14Pushed 2y ago2 watchersCompare

[ Source](https://github.com/umpirsky/UmpirskyI18nRoutingBundle)[ Packagist](https://packagist.org/packages/umpirsky/i18n-routing-bundle)[ RSS](/packages/umpirsky-i18n-routing-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (10)Used By (0)

###  [ ![](https://camo.githubusercontent.com/4acdbd12ae1b9a9539be7b30f8cef6cd9678ccb45500067152e333743632afd8/68747470733a2f2f6661726d322e737461746963666c69636b722e636f6d2f313730392f32353039383532363838345f616534643530343635665f6f5f642e706e67) ](https://github.com/umpirsky)

[](#----------------)

 **i18n routing bundle** • [symfony upgrade fixer](https://github.com/umpirsky/Symfony-Upgrade-Fixer) • [twig gettext extractor](https://github.com/umpirsky/Twig-Gettext-Extractor) • [wisdom](https://github.com/umpirsky/wisdom) • [centipede](https://github.com/umpirsky/centipede) • [permissions handler](https://github.com/umpirsky/PermissionsHandler)

UmpirskyI18nRoutingBundle
=========================

[](#umpirskyi18nroutingbundle)

Internationalized routing with minimal performance cost.

[![CI](https://github.com/umpirsky/UmpirskyI18nRoutingBundle/actions/workflows/ci.yml/badge.svg)](https://github.com/umpirsky/UmpirskyI18nRoutingBundle/actions/workflows/ci.yml)

Idea
----

[](#idea)

The idea is to create i18n route for each regular route in the project instead of creating separate route for each locale. On large projects with high number of routes and many locales supported this can lead to explosion of routes and performance issues. With more then 1000 routes and 30+ languages it can be a real problem. With this bundle and `prefix` strategy there is no performance cost. For `prefix_except_default` number of routes is doubled, but again, does not depend on number of languages.

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

[](#installation)

```
composer require umpirsky/i18n-routing-bundle

```

```
