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

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

alikdex/yii2-device-detect
==========================

Yii2 extension for Mobile-Detect library

0.0.1(9y ago)29.1k2MIT licensePHP

Since Aug 3Pushed 9y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (2)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:

```
"alikdex/yii2-device-detect": "0.0.1",

```

And then add it to your components configuration in Yii2:

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

Some basic detections are available in Yii's `params`:

```
var_dump(Yii::$app->params['devicedetect']);

array (size=3)
  'isMobile' => boolean false
  'isTablet' => boolean false
  'isDesktop' => boolean true
```

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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

3618d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12573893?v=4)[AlikDex](/maintainers/AlikDex)[@AlikDex](https://github.com/AlikDex)

---

Top Contributors

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

---

Tags

phonemobiledesktopyii2extensiondevicedetecttablet

### Embed Badge

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

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

###  Alternatives

[alexandernst/yii2-device-detect

Yii2 extension for Mobile-Detect library

135865.7k3](/packages/alexandernst-yii2-device-detect)[hisorange/browser-detect

Browser &amp; Mobile detection package for Laravel.

1.1k10.6M60](/packages/hisorange-browser-detect)[alikdex/yii2-crawler-detect

Yii2 extension for CrawlerDetect library

1422.1k](/packages/alikdex-yii2-crawler-detect)

PHPackages © 2026

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