ignatenkovnikita/yii2-user-device

User Device Manager

Installs: 1 269

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0 2020-05-11 23:28 UTC

This package is auto-updated.

Last update: 2024-12-22 18:41:46 UTC


README

User Device Manager

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist ignatenkovnikita/yii2-user-device "*"

or add

"ignatenkovnikita/yii2-user-device": "*"

to the require section of your composer.json file.

Run migration

./console/yii migrate --migrationPath=vendor/ignatenkovnikita/yii2-user-device/migrations/

Add in config section module

'modules' => [
    ...
    'user-device' => [
        'class' => \ignatenkovnikita\device\UserDevice::class
    ],
    ...
],

Usage

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

<?= \ignatenkovnikita\device\AutoloadExample::widget(); ?>```