yii2-extension yii2-mobile-detect
Yii2 component used to detect mobile devices
ezze/yii2-mobile-detect
Yii2 component used to detect mobile devices
- Wednesday, April 8, 2015
- by ezze
- Repository
- 2 Watchers
- 1 Stars
- 7,433 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 5 % Grown
Mobile Detect extension for Yii2
This extension provides an Yii2 component wrapper for Mobile_Detect PHP class and
can be used to detect whether a device is mobile one in your Yii2 application., (*1)
Installation
The preferred way to install this extension is through Composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist ezze/yii2-mobile-detect
or add, (*4)
"ezze/yii2-mobile-detect": "~0.1.0"
to the require
section of your composer.json
file., (*5)
Usage
-
Add mobileDetect
component to your Yii2 configuration
like this:, (*6)
'components' => [
'mobileDetect' => [
'class' => '\ezze\yii2\mobiledetect\MobileDetect'
]
]
-
Use mobileDetect
component as Mobile_Detect PHP class:, (*7)
echo \Yii::$app->mobileDetect->isMobile();
dev-master
9999999-dev
Yii2 component used to detect mobile devices
Sources
Download
The Requires
by
Dmitriy Pushkov
0.1.0
0.1.0.0
Yii2 component used to detect mobile devices
Sources
Download
The Requires
by
Dmitriy Pushkov
dev-dev
dev-dev
Yii2 component used to detect mobile devices
Sources
Download
The Requires
by
Dmitriy Pushkov