PHPackages                             rlabuta/mobiledetect - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rlabuta/mobiledetect

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

rlabuta/mobiledetect
====================

Detect mobile device

013PHP

Since Oct 13Pushed 10y ago1 watchersCompare

[ Source](https://github.com/gitruslan/yii2-mobileDetection)[ Packagist](https://packagist.org/packages/rlabuta/mobiledetect)[ RSS](/packages/rlabuta-mobiledetect/feed)WikiDiscussions live Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Mobile detection
=====================

[](#yii2-mobile-detection)

=========================== Main extensions library from

Installation
------------

[](#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',
    ]
]
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3e3723a33243f7778be1110a6aae395c6729601a855ad0b6002c4a9df54b321?d=identicon)[gitruslan](/maintainers/gitruslan)

### Embed Badge

![Health badge](/badges/rlabuta-mobiledetect/health.svg)

```
[![Health](https://phpackages.com/badges/rlabuta-mobiledetect/health.svg)](https://phpackages.com/packages/rlabuta-mobiledetect)
```

###  Alternatives

[vmwarephp/vmwarephp

Vmware vSphere bindings for PHP

7818.8k](/packages/vmwarephp-vmwarephp)[orrison/cumulus

Import DNS records from Laravel Vapor into Cloudflare

3817.1k](/packages/orrison-cumulus)[friends-of-hyva/magento2-crawler-session

Prevent crawlers from creating a session

155.8k](/packages/friends-of-hyva-magento2-crawler-session)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
