https://github.com/ignatenkovnikita/yii2-user-device
https://github.com/ignatenkovnikita/yii2-user-device
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ignatenkovnikita/yii2-user-device
- Owner: ignatenkovnikita
- Created: 2018-04-29T07:46:27.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T14:48:50.000Z (over 2 years ago)
- Last Synced: 2025-02-03T13:31:29.559Z (4 months ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
User Device Manager
===================
User Device ManagerInstallation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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
```bash
./console/yii migrate --migrationPath=vendor/ignatenkovnikita/yii2-user-device/migrations/
```Add in config section module
```php
'modules' => [
...
'user-device' => [
'class' => \ignatenkovnikita\device\UserDevice::class
],
...
],
```Usage
-----Once the extension is installed, simply use it in your code by :
```php
= \ignatenkovnikita\device\AutoloadExample::widget(); ?>```