PHPackages                             balazscsaba2006/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. balazscsaba2006/mobiledetect

ActiveCraft-plugin

balazscsaba2006/mobiledetect
============================

MobileDetect integration into Craft CMS 3.

1.0.0(7y ago)18proprietaryPHP

Since Jun 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/balazscsaba2006/craft3-mobiledetect)[ Packagist](https://packagist.org/packages/balazscsaba2006/mobiledetect)[ RSS](/packages/balazscsaba2006-mobiledetect/feed)WikiDiscussions master Synced today

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

MobileDetect for Craft3
=======================

[](#mobiledetect-for-craft3)

MobileDetect integration into Craft CMS 3.

[Mobile Detect](https://github.com/serbanghita/Mobile-Detect) is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0-RC1 or later.

Install
-------

[](#install)

- Install with Composer via: `composer require balazscsaba2006/mobiledetect`
- Navigate to `Settings -> Plugins` and click the "Install" button

Usage
-----

[](#usage)

### Get device version:

[](#get-device-version)

```
{{ craft.mobiledetect.version('iPad') }} # 4.3 (float)
```

### Get device type:

[](#get-device-type)

```
{{ craft.mobiledetect.type }} # mobile|tablet|none (string)
```

### Check if device is iOS or Android:

[](#check-if-device-is-ios-or-android)

```
{{ craft.mobiledetect.isiOS }} or {{ cract.mobiledetect.is('iOS') }}
{{ craft.mobiledetect.isAndroidOS }} or {{ cract.mobiledetect.is('isAndroidOS') }}
```

### Check if device is mobile or tablet:

[](#check-if-device-is-mobile-or-tablet)

```
{{ craft.mobiledetect.isMobile }}
{{ craft.mobiledetect.isTablet }}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

2894d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30c0431d32647bf0f71a0dbb9d2c6b9e71f18ae88124366d07a3305dc2505114?d=identicon)[balazscsaba2006](/maintainers/balazscsaba2006)

---

Top Contributors

[![balazscsaba2006](https://avatars.githubusercontent.com/u/1202594?v=4)](https://github.com/balazscsaba2006 "balazscsaba2006 (2 commits)")

---

Tags

mobile detectcmsCraftcraftcmscraft-pluginmobiledetect

### Embed Badge

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

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

###  Alternatives

[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[superbig/craft3-mobiledetect

Use Mobile\_Detect for detecting mobile devices (including tablets)

1953.3k](/packages/superbig-craft3-mobiledetect)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[verbb/hyper

A user-friendly links field for Craft.

24130.9k9](/packages/verbb-hyper)[verbb/social-poster

Automatically post entries to social media.

918.5k](/packages/verbb-social-poster)

PHPackages © 2026

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