rlabuta / mobiledetect
Detect mobile device
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
Requires (Dev)
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-05-25 16:17:44 UTC
README
=========================== Main extensions library from http://mobiledetect.net/
Installation
php composer.phar require rlabuta/mobiledetect "*"
or
"rlabuta/mobiledetect" : "*"
If you get error like ``...could not be found in any version`` during installation,
try to add
"minimum-stability": "dev"
in your json file
Add code below In your config
file like additional params
... 'params' => [ 'mobiledetect' => [ 'autoRedirectToMobile' => 'http://m.site', 'autoRedirectToTablet' => 'http://tablet.site', ] ]