PHPackages                             grottopress/mobile-detector - 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. grottopress/mobile-detector

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

grottopress/mobile-detector
===========================

Detect mobile devices and user agents.

v1.0.0(3y ago)01.1k1MITPHPPHP &gt;=7.0CI failing

Since Sep 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/GrottoPress/mobile-detector)[ Packagist](https://packagist.org/packages/grottopress/mobile-detector)[ RSS](/packages/grottopress-mobile-detector/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (10)Used By (1)

Mobile Detector
===============

[](#mobile-detector)

Description
-----------

[](#description)

Detect mobile devices and user agents. This is an extension of the [Mobile\_Detect](https://github.com/serbanghita/Mobile-Detect) library

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

[](#installation)

Install via composer: `composer require grottopress/mobile-detector`

Usage
-----

[](#usage)

```
use GrottoPress\Mobile\Detector;

$detector = new Detector();

// Check if is iOS
if ($detector->isiOS()) {
    //
}

// Check if is android
if ($detector->isAndroidOS()) {
    //
}

// Check if is smart device
if ($detector->isSmart()) {
    //
}

// Check if is phone
if ($detector->isPhone()) {
    //
}

// Check if is tablet
if ($detector->isTablet()) {
    //
}

// Check if is Samsung tablet
if ($detector->isSamsungTablet()) {
    //
}

// Detect current device
$device = $detector->getDevice();

// Detect current browser
$browser = $detector->getBrowser();

// Detect current OS
$os = $detector->getOperatingSystem();

// More examples here: https://github.com/serbanghita/Mobile-Detect/wiki/Code-examples
```

Development
-----------

[](#development)

Run tests with `composer run test`.

Contributing
------------

[](#contributing)

1. [Fork it](https://github.com/GrottoPress/mobile-detector/fork)
2. Switch to the `master` branch: `git checkout master`
3. Create your feature branch: `git checkout -b my-new-feature`
4. Make your changes, updating changelog and documentation as appropriate.
5. Commit your changes: `git commit`
6. Push to the branch: `git push origin my-new-feature`
7. Submit a new *Pull Request* against the `GrottoPress:master` branch.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

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

Every ~258 days

Recently: every ~376 days

Total

9

Last Release

1126d ago

Major Versions

v0.2.0 → v1.0.02023-05-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/73b1393a3c45523682f9bf693c23e6e05960a1b1492266b4b0d70041bb35eee2?d=identicon)[akadusei](/maintainers/akadusei)

---

Top Contributors

[![akadusei](https://avatars.githubusercontent.com/u/10501389?v=4)](https://github.com/akadusei "akadusei (59 commits)")

---

Tags

mobile-detectphpmobile

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/grottopress-mobile-detector/health.svg)

```
[![Health](https://phpackages.com/badges/grottopress-mobile-detector/health.svg)](https://phpackages.com/packages/grottopress-mobile-detector)
```

###  Alternatives

[jenssegers/agent

Desktop/mobile user agent parser with support for Laravel, based on Mobiledetect

4.8k70.8M496](/packages/jenssegers-agent)[hisorange/browser-detect

Browser &amp; Mobile detection package for Laravel.

1.1k10.6M60](/packages/hisorange-browser-detect)[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)[alexandernst/yii2-device-detect

Yii2 extension for Mobile-Detect library

135865.7k3](/packages/alexandernst-yii2-device-detect)[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)
