2017 © Pedro Peláez
 

yii2-extension yii2-device-detect

The device detect module for Yii.

image

xutl/yii2-device-detect

The device detect module for Yii.

  • Tuesday, November 28, 2017
  • by xutl
  • Repository
  • 0 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

yii2-device-detect

Yii2 extension for Mobile-Detect library., (*1)

To use it just require this extension in your composer.json file:, (*2)

"xutl/yii2-device-detect": "1.0.0",

And then add it to your components configuration in Yii2:, (*3)

'bootstrap' => ['devicedetect'],
'components' => [
    'devicedetect' => [
        'class' => 'xutl\devicedetect\DeviceDetect'
    ],
]

You can also use it from anywhere in your code, calling Mobile-Detect's API:, (*4)

/*Detect a mobile device*/
\Yii::$app->devicedetect->isMobile();

/*Detect a tablet device*/
\Yii::$app->devicedetect->isTablet();

/*Check all available methods here: http://demo.mobiledetect.net/ */

The Versions

28/11 2017

dev-master

9999999-dev

The device detect module for Yii.

  Sources   Download

MIT

The Requires

 

yii note yii2-note

28/11 2017

1.0.0

1.0.0.0

The device detect module for Yii.

  Sources   Download

MIT

The Requires

 

yii note yii2-note