PHPackages                             candasm/yii1-mobile-detect-component - 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. candasm/yii1-mobile-detect-component

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

candasm/yii1-mobile-detect-component
====================================

MobileDetect library for YiiFramework 1.x

1.0.2(9y ago)61.3kMITPHPPHP &gt;=5.3.0

Since Feb 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/candasm/yii1-mobile-detect-component)[ Packagist](https://packagist.org/packages/candasm/yii1-mobile-detect-component)[ RSS](/packages/candasm-yii1-mobile-detect-component/feed)WikiDiscussions master Synced 4w ago

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

### MobileDetect Component for Yii 1.x

[](#mobiledetect-component-for-yii-1x)

[![Latest Stable Version](https://camo.githubusercontent.com/dd535127227fa7085edefdb39681849209172fc1d9987db5edc37f1d519c713c/68747470733a2f2f706f7365722e707567782e6f72672f63616e6461736d2f796969312d6d6f62696c652d6465746563742d636f6d706f6e656e742f762f737461626c65)](https://packagist.org/packages/candasm/yii1-mobile-detect-component)[![Build Status](https://camo.githubusercontent.com/52f1ea3130b537319804dbc32fcc5c6a6652476dfb14b2c63100c05b86675be6/68747470733a2f2f7472617669732d63692e6f72672f63616e6461736d2f796969312d6d6f62696c652d6465746563742d636f6d706f6e656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/candasm/yii1-mobile-detect-component)[![Total Downloads](https://camo.githubusercontent.com/5db98946bcf439120a8d756cc077d7b4c619127533d5db223f4ce01805a5f81d/68747470733a2f2f706f7365722e707567782e6f72672f63616e6461736d2f796969312d6d6f62696c652d6465746563742d636f6d706f6e656e742f646f776e6c6f616473)](https://packagist.org/packages/candasm/yii1-mobile-detect-component)[![Coverage Status](https://camo.githubusercontent.com/7fffb3c432c2dccaa4481c72b2010be0236bc7320110f5650e8f97862fb2736b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f63616e6461736d2f796969312d6d6f62696c652d6465746563742d636f6d706f6e656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/candasm/yii1-mobile-detect-component?branch=master)[![License](https://camo.githubusercontent.com/ebbedcce2c443512d00d589daa8eb07d70461bed5ab00bb94dbadc741c3cd2fb/68747470733a2f2f706f7365722e707567782e6f72672f63616e6461736d2f796969312d6d6f62696c652d6465746563742d636f6d706f6e656e742f6c6963656e7365)](https://packagist.org/packages/candasm/yii1-mobile-detect-component)

### Install

[](#install)

In app config:

```
'components'=>array(
    ...

    'mobileDetect' => array(
        'class' => 'application.vendors.candasm.yii1-mobile-detect-component.src.MobileDetectComponent'
    ),

    ...
);
```

### Usage

[](#usage)

```
  $detect = Yii::app()->mobileDetect;
  // call methods
  $detect->isMobile();
  $detect->isTablet();
  $detect->isIphone();
  ...
```

For more information visit [MobileDetect](https://github.com/serbanghita/Mobile-Detect) Library.

\#####Note: Don't forget to set vendor-dir in composer.json file for YiiFramework 1.1.x versions.

```
"config":{
	"vendor-dir":"protected/vendor/"
},

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

3425d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ab2e1e42085c158325e749be03e08430d3d20152186ca36a122c31766b71fb3?d=identicon)[candasm](/maintainers/candasm)

---

Top Contributors

[![candasm](https://avatars.githubusercontent.com/u/1390090?v=4)](https://github.com/candasm "candasm (5 commits)")

---

Tags

mobile-detectionyii-extensionyii-frameworkmobile detectyii-extensionyii mobile detectyii componentyii framework mobile detect component

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/candasm-yii1-mobile-detect-component/health.svg)

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

###  Alternatives

[mobiledetect/mobiledetectlib

Mobile\_Detect is a lightweight PHP class for detecting mobile devices. It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

10.7k167.0M504](/packages/mobiledetect-mobiledetectlib)[suncat/mobile-detect-bundle

Symfony2/3/4 bundle for detect mobile devices, managing mobile view types, redirect to mobile version.

3935.4M7](/packages/suncat-mobile-detect-bundle)[shetabit/visitor

Laravel visitor

567617.8k13](/packages/shetabit-visitor)[tattali/mobile-detect-bundle

Symfony 5.x-7.x bundle to detect mobile devices, manage mobile view and redirect to the mobile and tablet version.

381.1M1](/packages/tattali-mobile-detect-bundle)[jbinfo/mobile-detect-service-provider

A mobile detect ServiceProvider for Silex, based on Mobile-Detect library.

25332.9k](/packages/jbinfo-mobile-detect-service-provider)[chronon/mobile_detect

A CakePHP plugin component for identifying mobile devices using the Mobile\_Detect project.

24252.6k1](/packages/chronon-mobile-detect)

PHPackages © 2026

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