candasm / yii1-mobile-detect-component
MobileDetect library for YiiFramework 1.x
Installs: 1 324
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii-extension
Requires
- php: >=5.3.0
- mobiledetect/mobiledetectlib: ~2.7
- yiisoft/yii: ~1.1.14
Requires (Dev)
- phpunit/dbunit: ~1.2
- phpunit/php-invoker: ^1.1
- phpunit/phpunit: ~3.7
- phpunit/phpunit-selenium: ~1.4.2
- phpunit/phpunit-story: ^1.0
- satooshi/php-coveralls: ^1.0
- squizlabs/php_codesniffer: ~2.8
This package is auto-updated.
Last update: 2024-11-10 05:56:41 UTC
README
MobileDetect Component for Yii 1.x
Install
In app config:
'components'=>array( ... 'mobileDetect' => array( 'class' => 'application.vendors.candasm.yii1-mobile-detect-component.src.MobileDetectComponent' ), ... );
Usage
$detect = Yii::app()->mobileDetect; // call methods $detect->isMobile(); $detect->isTablet(); $detect->isIphone(); ...
For more information visit MobileDetect Library.
#####Note: Don't forget to set vendor-dir in composer.json file for YiiFramework 1.1.x versions.
"config":{
"vendor-dir":"protected/vendor/"
},