amass/local-language-url Yii2 Language Pretty Local Url

extensionurllanguageurl

Yii2 Language Pretty Local Url

Yii2 Language Pretty Local Url

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist amass/local-language-url "dev-master"

or add

"amass/local-language-url": "dev-master"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :


 'component' => [
  .....
     'urlManager' => [
        'class' => 'amass\langprettyurl\UrlManager',
        /**if you use yii2-translate-manager https://github.com/lajax/yii2-translate-manager*/
        'allowClass' => 'amass\langprettyurl\Component',
        /* or */
        'languages' => ['uk' => 'uk-UA']
     ],
  .....
 ]

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.1 is the latest of 2 releases



BSD-3-Clause license
Stats
0 github stars & 1 github forks
0 downloads in the last day
0 downloads in the last 30 days
55 total downloads