PHPackages                             nidear1024/useragentparsed - 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. nidear1024/useragentparsed

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

nidear1024/useragentparsed
==========================

Analysis of the useragent in the request head

v1.0.1(3y ago)110MITPHPPHP &gt;=7.0.0

Since Mar 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/nidear1024/useragentparsed)[ Packagist](https://packagist.org/packages/nidear1024/useragentparsed)[ Docs](https://github.com/nidear1024/useragentparsed)[ RSS](/packages/nidear1024-useragentparsed/feed)WikiDiscussions main Synced 1mo ago

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

useragentparsed
===============

[](#useragentparsed)

Analysis of the useragent in the request head

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

[](#requirements)

---

- PHP &gt;= 7.0.0

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

[](#installation)

---

> This package requires PHP 7+

First, install useragentparsed.

```
composer require nidear1024/useragentparsed
```

Then run these commands to test：

```
cd useragentparsed
php ./test/index.php
```

Usage
-----

[](#usage)

```
include "./vendor/autoload.php";

$str = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0";
$str = getallheaders()['User-Agent'];

$obj = new \Common\Tools\UserAgentParsed();
echo "";
var_dump($obj->getBrowserInfo($str));
var_dump($obj->getSystemOS($str));
var_dump($obj->checkSpider($str));
var_dump($obj->getMachineType($str));
var_dump($obj->getAllInfo($str));
die;
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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

1153d ago

### Community

Maintainers

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

---

Top Contributors

[![nidear1024](https://avatars.githubusercontent.com/u/26103294?v=4)](https://github.com/nidear1024 "nidear1024 (10 commits)")

---

Tags

useragentuser agent

### Embed Badge

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

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

###  Alternatives

[jenssegers/agent

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

4.8k67.8M440](/packages/jenssegers-agent)[foroco/php-browser-detection

Ultra fast PHP library to detect browser, OS, platform and device type by User-Agent parsing

1554.7M7](/packages/foroco-php-browser-detection)[woothee/woothee

Cross-language UserAgent classifier library, PHP implementation

108633.5k4](/packages/woothee-woothee)

PHPackages © 2026

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