PHPackages                             holmes/holmes - 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. holmes/holmes

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

holmes/holmes
=============

Mobile device detection

2.0.1(11y ago)709444PHPPHP &gt;=5.3.3

Since Jan 21Pushed 10y ago2 watchersCompare

[ Source](https://github.com/zackkitzmiller/holmes)[ Packagist](https://packagist.org/packages/holmes/holmes)[ RSS](/packages/holmes-holmes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Holmes (version 2.0)
====================

[](#holmes-version-20)

wat?
----

[](#wat)

Holmes is an easy to use mobile detection library based on php-mobile-detect

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

[](#requirements)

- PHP 5.3+

Usage
-----

[](#usage)

```
// Determine if request is from a mobile device
Holmes\Holmes::isMobile(); // returns boolean

// Determine the type of device
$device = Holmes\Holmes::getDevice(); // returns string (or default)

// Holmes\Holmes::getDevice() will throw a DeviceNotDetectedException exception if no default is passed
// and could not detect a mobile device. Passing a default will return the default in lieu of an
// exception

// Determine if a specific device is being used
// Any supported device below is acceptable
Holmes\Holmes::isIpad();
Holmes\Holmes::isBlackberrytablet();

// Modern (Android/iPad) tablet
Holmes\Holmes::isTablet();

```

Supported Device Types
----------------------

[](#supported-device-types)

- Android
- Android Tablet
- BlackBerry
- BlackBerry Tablet
- iPhone
- iPad
- iOS (any iOS device)
- Nintendo DS/DSi
- Palm
- Windows
- Windows Phone
- More generic text-only devices

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.6% 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 ~707 days

Total

2

Last Release

4157d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d4797a04f2867414b7510fe5cb90689f18a7cb51d148bfffc85f44366d1e5ee?d=identicon)[zackkitzmiller](/maintainers/zackkitzmiller)

---

Top Contributors

[![zackkitzmiller](https://avatars.githubusercontent.com/u/111536?v=4)](https://github.com/zackkitzmiller "zackkitzmiller (16 commits)")[![frankdejonge](https://avatars.githubusercontent.com/u/534693?v=4)](https://github.com/frankdejonge "frankdejonge (2 commits)")[![josegonzalez](https://avatars.githubusercontent.com/u/65675?v=4)](https://github.com/josegonzalez "josegonzalez (2 commits)")[![dhrrgn](https://avatars.githubusercontent.com/u/149921?v=4)](https://github.com/dhrrgn "dhrrgn (1 commits)")[![huglester](https://avatars.githubusercontent.com/u/150731?v=4)](https://github.com/huglester "huglester (1 commits)")[![justinmccombs](https://avatars.githubusercontent.com/u/1485635?v=4)](https://github.com/justinmccombs "justinmccombs (1 commits)")

### Embed Badge

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

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

###  Alternatives

[tomatophp/filament-simple-theme

A simple theme for FilamentPHP with custom user menu in sidebar

146.6k](/packages/tomatophp-filament-simple-theme)

PHPackages © 2026

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