2017 © Pedro Peláez
 

library zf3-locale-router

Setup language-aware routes in Zend Framework 3 applications like f.e. www.example.com/de/my/uri for German or www.example.com/en/my/uri for English.

image

koseduhemak/zf3-locale-router

Setup language-aware routes in Zend Framework 3 applications like f.e. www.example.com/de/my/uri for German or www.example.com/en/my/uri for English.

  • Thursday, April 26, 2018
  • by koseduhemak
  • Repository
  • 1 Watchers
  • 1 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 19 Versions
  • 5 % Grown

The README.md

LocaleRouter

Build Status Coverage Status, (*1)

This module is intended to implement URIs like http://www.example.com/de/path/path2 or http://www.example.com/en/path/path2 in your ZF3 application. To achieve this, multiple strategies can be used to extract the best suited locale for a user (and redirect him to the correct uri). This is f.e. necessary for SEO. If you need to extract the current locale, you can use \Locale::getDefault(); to return the current set locale (f.e. de_DE)., (*2)

The strategies are processed in the order you configured them and is stopped as soon as the locale could be extracted., (*3)

Thanks to the creators of the modules https://github.com/basz/SlmLocale and https://github.com/xelax90/zf2-language-route, from which I took a little bit inspiration from., (*4)

If you like my module, you can buy me a beer or some coffee: https://www.paypal.me/koseduhemak, (*5)

Installation

Install via composer:, (*6)

$ composer require koseduhemak/zf3-locale-router

Usage

Read more about configuration options and different extracting / persisting strategies: configuration manual., (*7)

Buy me a beer / coffee

If you like my module, you can buy me a beer or some coffee: https://www.paypal.me/koseduhemak, (*8)

The Versions

19/12 2017

1.0.2

1.0.2.0

Setup language-aware routes in Zend Framework 3 applications like f.e. www.example.com/de/my/uri for German or www.example.com/en/my/uri for English.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar koseduhemak

19/12 2017

1.0.1

1.0.1.0

Setup language-aware routes in Zend Framework 3 applications like f.e. www.example.com/de/my/uri for German or www.example.com/en/my/uri for English.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar koseduhemak