PHPackages                             poowaa/browser-detect-standalone - 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. poowaa/browser-detect-standalone

ActiveLibrary

poowaa/browser-detect-standalone
================================

Browser &amp; Mobile detection package standalone PHP based on hisorange/browser-detect.

1.0.1(6y ago)015MITPHPPHP &gt;=5.6.0

Since Jun 6Pushed 6y agoCompare

[ Source](https://github.com/PoOwAa/browser-detect-standalone)[ Packagist](https://packagist.org/packages/poowaa/browser-detect-standalone)[ Docs](https://github.com/PoOwAa/browser-detect-standalone)[ RSS](/packages/poowaa-browser-detect-standalone/feed)WikiDiscussions stable Synced 2mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

Standalone PHP Browser Detection based on *[hisorange/browser-detect](https://github.com/hisorange/browser-detect)*
-------------------------------------------------------------------------------------------------------------------

[](#standalone-php-browser-detection-based-on-hisorangebrowser-detect)

Easy to use package to identify the user's browser details and device type. Magic is not involved the results are generated by multiple well tested and developed packages. Supporting every release **PHP** between **5.6 » 7.2**.

### How to install

[](#how-to-install)

---

```
composer require PoOwAa/browser-detect-standalone
```

Yep, that's it!

### How to use

[](#how-to-use)

---

If you want to use the user's browser, then simply use the Browser class:

```
use PoOwAa\BrowserDetect\Browser as Browser;

// Determine the user's device type is simple as this:
Browser::isMobile();
Browser::isTablet();
Browser::isDesktop();

// Every wondered if it is a bot who loading your page?
if (Browser::isBot()) {
    echo 'No need to wonder anymore!';
}

// Check for vendors.
if (Browser::isFirefox() || Browser::isOpera()) {
    $output .= '';
}
```

If you want to handle custom useragent, then use the Parser class:

```
use PoOwAa\BrowserDetect\Parser;

$customBrowser = new PoOwAa\BrowserDetect\Parser('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36');

// Determine the user's device type is simple as this:
$customBrowser->isMobile();
$customBrowser->isTablet();
$customBrowser->isDesktop();

// Every wondered if it is a bot who loading your page?
if ($customBrowser->isBot()) {
    echo 'No need to wonder anymore!';
}

// Check for vendors.
if ($customBrowser->isFirefox() || $customBrowser->isOpera()) {
    $output .= '';
}
```

### Available API calls

[](#available-api-calls)

---

Every call on the **Browser** object is mirrored to the result object, so the following informations are available on your result too, where you can use the array syntax to access them.

CallResponseInternal TypeBrowser::userAgent()Current visitor's HTTP\_USER\_AGENT string.*(string)*Browser::isMobile()Is this a mobile device.*(boolean)*Browser::isTablet()Is this a tablet device.*(boolean)*Browser::isDesktop()Is this a desktop computer.*(boolean)*Browser::isBot()Is this a crawler / bot.*(boolean)***Browser related functions**Browser::browserName()Browser's human friendly name like Firefox 3.6, Chrome 42.*(string)*Browser::browserFamily()Browser's vendor like Chrome, Firefox, Opera.*(string)*Browser::browserVersion()Browser's human friendly version string.*(string)*Browser::browserVersionMajor()Browser's [semantic](https://semver.org/) major version.*(integer)*Browser::browserVersionMinor()Browser's [semantic](https://semver.org/) minor version.*(integer)*Browser::browserVersionPatch()Browser's [semantic](https://semver.org/) patch version.*(integer)*Browser::browserEngine()Browser's engine like: Blink, WebKit, Gecko.*(string)***Operating system related functions**Browser::platformName()Operating system's human friendly name like Windows XP, MacOS 10.*(string)*Browser::platformFamily()Operating system's vendor like Linux, Windows, MacOS.*(string)*Browser::platformVersion()Operating system's human friendly version like XP, Vista, 10.*(integer)*Browser::platformVersionMajor()Operating system's [semantic](https://semver.org/) major version.*(integer)*Browser::platformVersionMinor()Operating system's [semantic](https://semver.org/) minor version.*(integer)*Browser::platformVersionPatch()Operating system's [semantic](https://semver.org/) patch version.*(integer)***Device related functions**Browser::deviceFamily()Device's vendor like Samsung, Apple, Huawei.*(string)*Browser::deviceModel()Device's brand name like iPad, iPhone, Nexus.*(string)*Browser::mobileGrade()Device's mobile grade in scale of A,B,C for performance.*(string)***Browser vendor related functions**Browser::isChrome()Is this a chrome browser.*(boolean)*Browser::isFirefox()Is this a firefox browser.*(boolean)*Browser::isOpera()Is this an opera browser.*(boolean)*Browser::isSafari()Is this a safari browser.*(boolean)*Browser::isIE()Checks if the browser is an some kind of Internet Explorer (or Trident)*(boolean)*Browser::isIEVersion()Compares to a given IE version*(boolean)*Browser::isEdge()Is this a microsoft edge browser.*(boolean)*

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

2529d ago

### Community

Maintainers

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

---

Tags

browsermobileuser agentdetecttablethisorangebrowser detectanalyizepoowaa

### Embed Badge

![Health badge](/badges/poowaa-browser-detect-standalone/health.svg)

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

###  Alternatives

[hisorange/browser-detect

Browser &amp; Mobile detection package for Laravel.

1.1k10.1M50](/packages/hisorange-browser-detect)[jenssegers/agent

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

4.8k67.8M440](/packages/jenssegers-agent)[alexandernst/yii2-device-detect

Yii2 extension for Mobile-Detect library

141846.2k3](/packages/alexandernst-yii2-device-detect)[al-saloul/agent

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

1511.5k1](/packages/al-saloul-agent)

PHPackages © 2026

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