PHPackages                             xutl/yii2-device-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. xutl/yii2-device-detect

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

xutl/yii2-device-detect
=======================

The device detect module for Yii.

1.0.0(8y ago)1241MITPHP

Since Nov 28Pushed 8y agoCompare

[ Source](https://github.com/xutl/yii2-device-detect)[ Packagist](https://packagist.org/packages/xutl/yii2-device-detect)[ RSS](/packages/xutl-yii2-device-detect/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

yii2-device-detect
==================

[](#yii2-device-detect)

Yii2 extension for [Mobile-Detect](https://github.com/serbanghita/Mobile-Detect) library.

To use it just require this extension in your `composer.json` file:

```
"xutl/yii2-device-detect": "1.0.0",

```

And then add it to your components configuration in Yii2:

```
'bootstrap' => ['devicedetect'],
'components' => [
    'devicedetect' => [
        'class' => 'xutl\devicedetect\DeviceDetect'
    ],
]
```

You can also use it from anywhere in your code, calling Mobile-Detect's API:

```
/*Detect a mobile device*/
\Yii::$app->devicedetect->isMobile();

/*Detect a tablet device*/
\Yii::$app->devicedetect->isTablet();

/*Check all available methods here: http://demo.mobiledetect.net/ */
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3087d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87b658aa9d49e0c80cfc609fa2b9dc6d615672b1d895f421f751945a0e394087?d=identicon)[larvacent](/maintainers/larvacent)

---

Top Contributors

[![xutl](https://avatars.githubusercontent.com/u/20939388?v=4)](https://github.com/xutl "xutl (7 commits)")

---

Tags

yiinoteyii2-note

### Embed Badge

![Health badge](/badges/xutl-yii2-device-detect/health.svg)

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

###  Alternatives

[rmrevin/yii2-fontawesome

Asset Bundle for Yii2 with Font Awesome

1474.0M134](/packages/rmrevin-yii2-fontawesome)[kop/yii2-scroll-pager

Infinite AJAX scrolling for Yii2 ListView widget

180706.5k10](/packages/kop-yii2-scroll-pager)[mihaildev/yii2-ckeditor

Yii2 CKEditor

118552.5k50](/packages/mihaildev-yii2-ckeditor)[cebe/yii2-gravatar

Gravatar Widget for Yii 2

441.8M35](/packages/cebe-yii2-gravatar)[brussens/yii2-maintenance-mode

Maintenance mode component for Yii framework 2.x.x version.

78256.3k5](/packages/brussens-yii2-maintenance-mode)[trntv/yii2-aceeditor

Yii2 ajax.org Ace Editor widget

43787.5k20](/packages/trntv-yii2-aceeditor)

PHPackages © 2026

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