rlabuta/mobiledetect

Detect mobile device

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

pkg:composer/rlabuta/mobiledetect

dev-live / 1.0.x-dev 2015-10-13 18:12 UTC

This package is not auto-updated.

Last update: 2025-12-07 00:49:37 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',
    ]
]