Download the PHP package i4erkasov/yii2-device-detect without Composer
On this page you can find all versions of the php package i4erkasov/yii2-device-detect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download i4erkasov/yii2-device-detect
More information about i4erkasov/yii2-device-detect
Files in i4erkasov/yii2-device-detect
Download i4erkasov/yii2-device-detect
More information about i4erkasov/yii2-device-detect
Files in i4erkasov/yii2-device-detect
Vendor i4erkasov
Package yii2-device-detect
Short Description Device Detect extension for Yii2
License MIT
Package yii2-device-detect
Short Description Device Detect extension for Yii2
License MIT
Please rate this library. Is it a good library?
Informations about the package yii2-device-detect
yii2-device-detect
Device Detect extension for Yii2"
Installation
The preferred way to install this extension is through composer.
Run the following command
or add the following to the require section of your composer.json file:
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
-
Add
mobileDetect
component to your Yii2 configuration like this: -
Use
DeviceDetect
component as Mobile_Detect PHP class:echo \Yii::$app->device->isMobile(); echo \Yii::$app->device->isTablet(); echo \Yii::$app->device->isDesktop();
All versions of yii2-device-detect with dependencies
PHP Build Version
Package Version
The package i4erkasov/yii2-device-detect contains the following files
Loading the files please wait ....