PHPackages                             meerware/browser-information - 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. meerware/browser-information

ActiveSilverstripe-module[Utility &amp; Helpers](/categories/utility)

meerware/browser-information
============================

SilverStripe Module detecting browser information

0.3(12y ago)103411BSDPHP

Since Jul 16Pushed 7y ago2 watchersCompare

[ Source](https://github.com/meerware/silverstripe-browser-information)[ Packagist](https://packagist.org/packages/meerware/browser-information)[ Docs](https://github.com/meerware/silverstripe-browser-information)[ RSS](/packages/meerware-browser-information/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Browser Information for SilverStripe
====================================

[](#browser-information-for-silverstripe)

A small module for detecting the browser name, version, operating system and device type through the browser user agent and exposing methods for controllers.

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

[](#requirements)

- SilverStripe 3 or higher

Usage
-----

[](#usage)

The module automatically extends all Controllers to have two methods:

```
$controller->getBrowser();
$controller->Browser();
```

Both returning a Browser class which wraps the browser name, version, operating system and device type.

### Browser Name

[](#browser-name)

```
$browser->getName();
```

The browser name is crude but will return one of the following:

- ie
- firefox
- chrome
- safari
- netscape
- opera
- konqueror
- unknown

### Browser Version

[](#browser-version)

```
$browser->getVersion();
```

The browser version will return a string value in the format of "X.X", just the major and minor version numbers if present.

### Operating System

[](#operating-system)

```
$browser->getSystem();
```

The operating system will return one of the following values:

- linux
- macintosh
- windows
- ios
- android
- unknown

### Device

[](#device)

```
$browser->getDevice();
```

Device detects whether the browser is either a handheld or a screen device (mobile/tablet or desktop/laptop) and will return the following values:

- screen
- handheld

### Engine

[](#engine)

```
$browser->getEngine();
```

Detects the browser rendering engine and will return the following values:

- gecko
- webkit
- trident
- presto

### Templates

[](#templates)

When the module is included in your SilverStripe directory structure, the module, through extension, will expose a browser attribute for use in templates:

```

```

Will be evaluated to something like:

```

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% 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

3

Last Release

4685d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2b10b253da41fc6b82831ed6afb85f7f20dc51878b24327e34b77de76a156cb?d=identicon)[meerware](/maintainers/meerware)

---

Top Contributors

[![meerware](https://avatars.githubusercontent.com/u/2617518?v=4)](https://github.com/meerware "meerware (16 commits)")[![sageworksstudio](https://avatars.githubusercontent.com/u/598105?v=4)](https://github.com/sageworksstudio "sageworksstudio (1 commits)")

---

Tags

browsersilverstripe

### Embed Badge

![Health badge](/badges/meerware-browser-information/health.svg)

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

###  Alternatives

[silverstripe/multi-domain

Allows multiple domains to access one CMS instance, mapping them to different sections of the hierarchy

141.6k](/packages/silverstripe-multi-domain)

PHPackages © 2026

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