PHPackages                             nyx-solutions/yii2-nyx-user-agent-parser - 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. [Framework](/categories/framework)
4. /
5. nyx-solutions/yii2-nyx-user-agent-parser

ActiveLibrary[Framework](/categories/framework)

nyx-solutions/yii2-nyx-user-agent-parser
========================================

Yii2 UserAgent Parser

5.0.0(3y ago)35971BSD-3-ClausePHPPHP &gt;=8.1.0 &lt;8.2

Since May 26Pushed 3y ago2 watchersCompare

[ Source](https://github.com/nyx-solutions/yii2-nyx-user-agent-parser)[ Packagist](https://packagist.org/packages/nyx-solutions/yii2-nyx-user-agent-parser)[ RSS](/packages/nyx-solutions-yii2-nyx-user-agent-parser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (13)Used By (1)

Yii PHP Framework Version 2 / NYX UserAgent Parser
==================================================

[](#yii-php-framework-version-2--nyx-useragent-parser)

A simple streamlined PHP user-agent parser for Yii Framework 2.

[![Latest Stable Version](https://camo.githubusercontent.com/c0ccc678f81de1ab975e885c38e7b27bbd95e937e44fb2da7875c5ba68aed1ea/68747470733a2f2f706f7365722e707567782e6f72672f6e79782d736f6c7574696f6e732f796969322d6e79782d757365722d6167656e742d7061727365722f762f737461626c65)](https://packagist.org/packages/nyx-solutions/yii2-nyx-user-agent-parser)[![Total Downloads](https://camo.githubusercontent.com/2f65d94beb63aa446992cfa00e9f6a0ce978ffc30fa153705ec6a2e736f47b41/68747470733a2f2f706f7365722e707567782e6f72672f6e79782d736f6c7574696f6e732f796969322d6e79782d757365722d6167656e742d7061727365722f646f776e6c6f616473)](https://packagist.org/packages/nyx-solutions/yii2-nyx-user-agent-parser)[![Latest Unstable Version](https://camo.githubusercontent.com/ca6914893f9305f541b8619f593637eef52c2f9ec086887addd04a9762e0f895/68747470733a2f2f706f7365722e707567782e6f72672f6e79782d736f6c7574696f6e732f796969322d6e79782d757365722d6167656e742d7061727365722f762f756e737461626c65)](https://packagist.org/packages/nyx-solutions/yii2-nyx-user-agent-parser)[![License](https://camo.githubusercontent.com/738aa5ffcab0740464cae3852166f99f0eacf74c26802824f7447830e14192dc/68747470733a2f2f706f7365722e707567782e6f72672f6e79782d736f6c7574696f6e732f796969322d6e79782d757365722d6167656e742d7061727365722f6c6963656e7365)](https://packagist.org/packages/nyx-solutions/yii2-nyx-user-agent-parser)[![Monthly Downloads](https://camo.githubusercontent.com/686f3fac8b892569228b8e78919e5420d33140e0324302becc26acf7c73d6dfd/68747470733a2f2f706f7365722e707567782e6f72672f6e79782d736f6c7574696f6e732f796969322d6e79782d757365722d6167656e742d7061727365722f642f6d6f6e74686c79)](https://packagist.org/packages/nyx-solutions/yii2-nyx-user-agent-parser)[![Daily Downloads](https://camo.githubusercontent.com/ff37e13bfe46ea51b3510cf28ac74aea16363e3262935b22137e3407dd3b9e63/68747470733a2f2f706f7365722e707567782e6f72672f6e79782d736f6c7574696f6e732f796969322d6e79782d757365722d6167656e742d7061727365722f642f6461696c79)](https://packagist.org/packages/nyx-solutions/yii2-nyx-user-agent-parser)[![composer.lock](https://camo.githubusercontent.com/d6032f58d433c8984be56d91a20951c91b705c68890bd341bde05a0ba1b97f1c/68747470733a2f2f706f7365722e707567782e6f72672f6e79782d736f6c7574696f6e732f796969322d6e79782d757365722d6167656e742d7061727365722f636f6d706f7365726c6f636b)](https://packagist.org/packages/nyx-solutions/yii2-nyx-user-agent-parser)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist nyx-solutions/yii2-nyx-user-agent-parser "*"
```

or add

```
"nyx-solutions/yii2-nyx-user-agent-parser": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

### Statically

[](#statically)

```
use nyx\components\http\userAgent\Parser;

$userAgent = UserAgentParser::parse(); // or UserAgentParser::parse($ua);

$userAgent->ua;                 // [Searched UserAgent]
$userAgent->successfullyParsed; // [Has UserAgent Results]
$userAgent->platform;           // [Detected Platform]
$userAgent->browser;            // [Detected Browser]
$userAgent->version;            // [Detected Browser Version]
```

### As Object

[](#as-object)

```
use nyx\components\http\userAgent\Parser;

$userAgent = new UserAgentParser();

$userAgent->ua;                 // [Searched UserAgent]
$userAgent->successfullyParsed; // [Has UserAgent Results]
$userAgent->platform;           // [Detected Platform]
$userAgent->browser;            // [Detected Browser]
$userAgent->version;            // [Detected Browser Version]
```

Currently Detected Platforms
----------------------------

[](#currently-detected-platforms)

- Desktop
    - Windows
    - Linux
    - Macintosh
    - Chrome OS
- Mobile
    - Android
    - iPhone
    - iPad / iPod Touch
    - Windows Phone OS
    - Kindle
    - Kindle Fire
    - BlackBerry
    - Playbook
    - Tizen
- Console
    - Nintendo 3DS
    - New Nintendo 3DS
    - Nintendo Wii
    - Nintendo WiiU
    - PlayStation 3
    - PlayStation 4
    - PlayStation Vita
    - Xbox 360
    - Xbox One

Currently Detected Browsers
---------------------------

[](#currently-detected-browsers)

- Android Browser
- BlackBerry Browser
- Camino
- Kindle / Silk
- Firefox / Iceweasel
- Safari
- Internet Explorer
- IEMobile
- Chrome
- Opera
- Midori
- Vivaldi
- TizenBrowser
- Lynx
- Wget
- Curl

License
-------

[](#license)

**yii2-nyx-user-agent-parser** is released under the BSD 3-Clause License. See the bundled `LICENSE.md` for details.

[![Yii2](https://camo.githubusercontent.com/d6b0929173e28cc627430d2519ca1853466a70f37395877eaf4820cb3e1e1909/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/d6b0929173e28cc627430d2519ca1853466a70f37395877eaf4820cb3e1e1909/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 85.7% 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 ~200 days

Recently: every ~514 days

Total

12

Last Release

1440d ago

Major Versions

1.5.5 → 2.0.02020-05-03

2.0.0 → 4.0.02022-06-01

4.0.0 → 5.0.02022-06-02

PHP version history (3 changes)1.0.0PHP &gt;=5.4.0

2.0.0PHP &gt;=7.4.0

5.0.0PHP &gt;=8.1.0 &lt;8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/f7c641a4199171cc30bf08b9bf67636a8463acf86813fa259aab131b5bd5a161?d=identicon)[nyx-solutions](/maintainers/nyx-solutions)

---

Top Contributors

[![jsas4coding](https://avatars.githubusercontent.com/u/4156892?v=4)](https://github.com/jsas4coding "jsas4coding (12 commits)")[![brenoherculano](https://avatars.githubusercontent.com/u/90738807?v=4)](https://github.com/brenoherculano "brenoherculano (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

phpframeworkmigrationyii2extension

### Embed Badge

![Health badge](/badges/nyx-solutions-yii2-nyx-user-agent-parser/health.svg)

```
[![Health](https://phpackages.com/badges/nyx-solutions-yii2-nyx-user-agent-parser/health.svg)](https://phpackages.com/packages/nyx-solutions-yii2-nyx-user-agent-parser)
```

PHPackages © 2026

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