albertgeeca/yii2-language-manager

This package is abandoned and no longer maintained. No replacement package was suggested.

Language manager for Yii2 framework. Allows to add languages that can be used in other extensions.

dev-master 2019-10-13 06:02 UTC

This package is auto-updated.

Last update: 2024-01-13 15:09:41 UTC


README

Language manager for Yii2 framework. Allows to add languages that can be used in other extensions.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist albertgeeca/yii2-language-manager "*"

or add

"albertgeeca/yii2-language-manager": "*"

to the require section of your composer.json file.

Apply migrations:

php yii migrate --migrationPath=@vendor/albertgeeca/yii2-language-manager/src/migrations

To access the module, you need to add this to your application configuration:

    ......
    'modules' => [
        'language' => [
            'class' => 'albertgeeca\language_manager\src\backend\Module',
        ],
    ],
    ......

Usage

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

<?= \albertgeeca\language_manager\AutoloadExample::widget(); ?>```