PHPackages                             doefom/statamic-browser-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. doefom/statamic-browser-detect

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

doefom/statamic-browser-detect
==============================

A Statamic tag as a wrapper for the composer package 'hisorange/browser-detect' (https://github.com/hisorange/browser-detect).

v0.1.1(2y ago)0594↓78.6%1MITPHP

Since Dec 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/doefom/statamic-browser-detect)[ Packagist](https://packagist.org/packages/doefom/statamic-browser-detect)[ RSS](/packages/doefom-statamic-browser-detect/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Statamic Browser Detect
=======================

[](#statamic-browser-detect)

A Statamic tag as a wrapper for the composer package `hisorange/browser-detect`() to use in your antlers templates.

Features
--------

[](#features)

This addon provides a tag that can be used in antlers templates to find out all sorts of information about the requesting browser, device, operating system and more.

How to Install
--------------

[](#how-to-install)

You can search for this addon in the `Tools > Addons` section of the Statamic control panel and click **install**, or run the following command from your project root:

```
composer require doefom/statamic-browser-detect
```

How to Use
----------

[](#how-to-use)

The tag exactly uses the original Browser facade's API. Since all the methods called on the tag are proxied to the Browser facade, you can use the tag like you would use the facade. You can find the documentation here:

### Examples

[](#examples)

In your antlers template you may use the tag like so:

```
{{ if {browser:isMobile} }}
   It's a mobile device!
{{ /if }}

```

```
{{ browser:browserFamily }} // "Chrome"

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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 ~0 days

Total

2

Last Release

937d ago

### Community

Maintainers

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

---

Top Contributors

[![doefom](https://avatars.githubusercontent.com/u/33541715?v=4)](https://github.com/doefom "doefom (7 commits)")

### Embed Badge

![Health badge](/badges/doefom-statamic-browser-detect/health.svg)

```
[![Health](https://phpackages.com/badges/doefom-statamic-browser-detect/health.svg)](https://phpackages.com/packages/doefom-statamic-browser-detect)
```

###  Alternatives

[ivanomatteo/laravel-device-tracking

a library that allow to track different devices used

28266.2k](/packages/ivanomatteo-laravel-device-tracking)[fresns/fresns

Cross-platform general-purpose multiple content forms social network service software.

4841.5k](/packages/fresns-fresns)

PHPackages © 2026

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