PHPackages                             ezze/yii2-mobile-detect - 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. ezze/yii2-mobile-detect

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

ezze/yii2-mobile-detect
=======================

Yii2 component used to detect mobile devices

0.1.0(11y ago)156.4k↓13.2%PHP

Since Apr 8Pushed 11y ago2 watchersCompare

[ Source](https://github.com/ezze/yii2-mobile-detect)[ Packagist](https://packagist.org/packages/ezze/yii2-mobile-detect)[ RSS](/packages/ezze-yii2-mobile-detect/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Mobile Detect extension for Yii2
================================

[](#mobile-detect-extension-for-yii2)

This extension provides an Yii2 component wrapper for [Mobile\_Detect](http://mobiledetect.net/) PHP class and can be used to detect whether a device is mobile one in your Yii2 application.

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

[](#installation)

The preferred way to install this extension is through [Composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist ezze/yii2-mobile-detect

```

or add

```
"ezze/yii2-mobile-detect": "~0.1.0"
```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

1. Add `mobileDetect` component to your [Yii2 configuration](http://www.yiiframework.com/doc-2.0/guide-concept-configurations.html#application-configurations)like this:

    ```
    'components' => [
        'mobileDetect' => [
            'class' => '\ezze\yii2\mobiledetect\MobileDetect'
        ]
    ]
    ```
2. Use `mobileDetect` component as [Mobile\_Detect](http://mobiledetect.net/) PHP class:

    ```
    echo \Yii::$app->mobileDetect->isMobile();
    ```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4058d ago

### Community

Maintainers

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

---

Top Contributors

[![ezze](https://avatars.githubusercontent.com/u/665479?v=4)](https://github.com/ezze "ezze (8 commits)")

### Embed Badge

![Health badge](/badges/ezze-yii2-mobile-detect/health.svg)

```
[![Health](https://phpackages.com/badges/ezze-yii2-mobile-detect/health.svg)](https://phpackages.com/packages/ezze-yii2-mobile-detect)
```

PHPackages © 2026

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