Download the PHP package umpirsky/i18n-routing-bundle without Composer

On this page you can find all versions of the php package umpirsky/i18n-routing-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package i18n-routing-bundle

i18n routing bundlesymfony upgrade fixertwig gettext extractorwisdomcentipedepermissions handler

UmpirskyI18nRoutingBundle

Internationalized routing with minimal performance cost.

CI

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

Configuration

Usage

Disabling i18n routing on route level

If you want route not to be localized, you can disable it using i18n option:

Strategies

There are multiple routing strategies supported.

prefix

This will prefix all urls with given locales:

Configuration:

prefix_except_default

This will prefix all urls with given locales except default:

Configuration:

Example

There is example integration with Symfony Standard Edition.

Inspiration

This bundle is inspired by JMSI18nRoutingBundle and BeSimpleI18nRoutingBundle, but sacrifices the url translation feature for the sake of performance.


All versions of i18n-routing-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
symfony/framework-bundle Version ^5.4|^6.0|^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package umpirsky/i18n-routing-bundle contains the following files

Loading the files please wait ....