PHPackages                             mimmi20/ua-result - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. mimmi20/ua-result

ActiveLibrary[HTTP &amp; Networking](/categories/http)

mimmi20/ua-result
=================

Library to handle useragent parser results

16.0.2(2mo ago)6246.9k—1.6%14MITPHPPHP ~8.5.0 || ~8.6.0CI passing

Since Oct 11Pushed 4w ago1 watchersCompare

[ Source](https://github.com/mimmi20/ua-result)[ Packagist](https://packagist.org/packages/mimmi20/ua-result)[ Docs](https://github.com/mimmi20/ua-result)[ RSS](/packages/mimmi20-ua-result/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (45)Versions (98)Used By (14)

Useragent Detector Result
=========================

[](#useragent-detector-result)

[![Latest Stable Version](https://camo.githubusercontent.com/95cbb6ac1e8c7fbdd2ee4e70445f49132e00e89e9962c9878d5951555481c2b5/68747470733a2f2f706f7365722e707567782e6f72672f6d696d6d6932302f75612d726573756c742f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/mimmi20/ua-result)[![Latest Unstable Version](https://camo.githubusercontent.com/8fb5432f546d9d625869604e3c1fee77c5778b24f4c821d9824a6e1d4fa3871e/68747470733a2f2f706f7365722e707567782e6f72672f6d696d6d6932302f75612d726573756c742f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/mimmi20/ua-result)[![License](https://camo.githubusercontent.com/42cf8c0052191d390beb33cdb3b72db7833bedcbeb62fd3ba6f9fb53b0768a8f/68747470733a2f2f706f7365722e707567782e6f72672f6d696d6d6932302f75612d726573756c742f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/mimmi20/ua-result)

Code Status
-----------

[](#code-status)

[![codecov](https://camo.githubusercontent.com/f2c00bb239fe93b4bb825dc87acfcb7b7a27949d237449c0a62e618b57543898/68747470733a2f2f636f6465636f762e696f2f67682f6d696d6d6932302f75612d726573756c742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/mimmi20/ua-result)[![Average time to resolve an issue](https://camo.githubusercontent.com/fd66e57939a1f8d636e95b28476c384e71e4001aece38a1f2d87bb8f849b89b9/68747470733a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f7265736f6c7574696f6e2f6d696d6d6932302f75612d726573756c742e737667)](https://isitmaintained.com/project/mimmi20/ua-result "Average time to resolve an issue")[![Percentage of issues still open](https://camo.githubusercontent.com/0edb839060c41e3ed9e16a02fd13e84005bd05a9a2669d4f04724c0a5e43b85b/68747470733a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f6d696d6d6932302f75612d726573756c742e737667)](https://isitmaintained.com/project/mimmi20/ua-result "Percentage of issues still open")

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

[](#description)

This library provides a set of classes representing a result of an useragent detection.

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

[](#requirements)

This library requires PHP 7.4+. Also a PSR-3 compatible logger is required.

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

[](#installation)

Run the command below to install via Composer

```
composer require mimmi20/ua-result
```

The result object
-----------------

[](#the-result-object)

The result object is the main object and contains only other objects.

The browser object
------------------

[](#the-browser-object)

The browser object represents the detected browser.

```
// get the result by detection or create it

$browser = $result->getBrowser();

// get the name
$name = $browser->getName();

// get the manufaturer
$manCompany = $browser->getManufacturer()->getName();
$manBrand   = $browser->getManufacturer()->getBrandName();

// get the version
$name = $browser->getVersion()->getVersion();

// get the type
$type  = $browser->getType()->getName();
$isbot = $browser->getType()->isBot();
```

The engine object
-----------------

[](#the-engine-object)

The engine object represents the detected rendering engine.

```
// get the result by detection or create it

$engine = $result->getEngine();

// get the name
$name = $engine->getName();

// get the manufaturer
$manCompany = $engine->getManufacturer()->getName();
$manBrand   = $engine->getManufacturer()->getBrandName();

// get the version
$name = $engine->getVersion()->getVersion();
```

The device object
-----------------

[](#the-device-object)

The device object represents the detected device.

```
// get the result by detection or create it

$device = $result->getDevice();

// get the (code) name
$name = $device->getDeviceName();
// the device may have a different marketing name
$mname = $device->getMarketingName();

// get the manufaturer
$manCompany = $device->getManufacturer()->getName();
$manBrand   = $device->getManufacturer()->getBrandName();
// the device may be a branded version
$brand = $device->getBrand()->getBrandName();

// does the device support dual orientation?
$dualorien = $device->getDualOrientation();

// get the pointing method
$pointing = $device->getPointingMethod();

// get the display dimensions
$height = $device->getResolutionHeight();
$width  = $device->getResolutionWidth();

// get some more information about the device type
$type     = $device->getType()->getName();
$isPhone  = $device->getType()->isPhone();
$isTablet = $device->getType()->isTablet();
```

The platform object
-------------------

[](#the-platform-object)

The os object represents the detected platform.

```
// get the result by detection or create it

$platform = $result->getOs();

// get the (code) name
$name  = $platform->getName();
// the platform may have a different marketing name
$mname = $platform->getMarketingName();

// get the manufaturer
$manCompany = $platform->getManufacturer()->getName();
$manBrand   = $platform->getManufacturer()->getBrandName();

// get the version
$name = $platform->getVersion()->getVersion();
```

Issues and feature requests
---------------------------

[](#issues-and-feature-requests)

Please report your issues and ask for new features on the GitHub Issue Tracker at

###  Health Score

67

—

FairBetter than 99% of packages

Maintenance91

Actively maintained with recent releases

Popularity38

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity97

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~33 days

Total

93

Last Release

64d ago

Major Versions

11.0.0 → 12.0.02025-01-13

12.0.2 → 13.0.02025-08-13

13.0.0 → 14.0.02025-09-12

14.0.2 → 15.0.02025-12-15

15.0.2 → 16.0.02026-04-05

PHP version history (12 changes)1.0.0PHP &gt;=5.5.0

1.1.0PHP &gt;=5.6.0

3.0.0PHP ^7.0 || ^7.1

3.0.1PHP ^7.0

4.0.0PHP ^7.1

7.1.1PHP ^7.1.3 || ^8.0.0

8.0.0PHP ^7.4.0 || ^8.0.0

8.0.3PHP ^7.4.3 || ^8.0.0

9.0.0PHP ^8.1.0

10.0.0PHP ~8.3.0 || ~8.4.0 || ~8.5.0

13.0.0PHP ~8.4.0 || ~8.5.0

16.0.0PHP ~8.5.0 || ~8.6.0

### Community

Maintainers

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

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (351 commits)")[![mimmi20](https://avatars.githubusercontent.com/u/1120192?v=4)](https://github.com/mimmi20 "mimmi20 (329 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (136 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (25 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (5 commits)")

---

Tags

php85httpbrowserparseruser agent

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mimmi20-ua-result/health.svg)

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

###  Alternatives

[mimmi20/browser-detector

Library to detect Browsers and Devices

48157.5k5](/packages/mimmi20-browser-detector)[riverline/multipart-parser

One class library to parse multipart content with encoding and charset support.

17262.1M68](/packages/riverline-multipart-parser)[aplus/http

Aplus Framework HTTP Library

2371.6M10](/packages/aplus-http)[duzun/hquery

An extremely fast web scraper that parses megabytes of HTML in a blink of an eye. No dependencies. PHP5+

362167.6k5](/packages/duzun-hquery)[synchro/uasparser

UASparser is a PHP parser and classifier for user agent strings presented by HTTP clients using databases from http://user-agent-string.info/.

2016.5k](/packages/synchro-uasparser)[kelvinzer0/curl-impersonate-php

PHP wrapper for curl-impersonate — mimic real browser TLS fingerprints to bypass anti-bot detection

2555.9k7](/packages/kelvinzer0-curl-impersonate-php)

PHPackages © 2026

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