PHPackages                             ubxty/ubx-ua-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ubxty/ubx-ua-parser

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

ubxty/ubx-ua-parser
===================

Comprehensive User Agent parser for Laravel applications

v1.0.1(1y ago)068MITPHPPHP ^7.3|^8.0

Since Jan 27Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Ubx UA Parser
=============

[](#ubx-ua-parser)

A comprehensive User Agent parser for Laravel applications.

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

[](#installation)

```
composer require ubxty/ubx-ua-parser
```

Usage
-----

[](#usage)

```
use Ubxty\UAParser\Facades\UAParser;

// Get platform
$platform = UAParser::getPlatform(); // android, ios, web, etc.

// Get browser
$browser = UAParser::getBrowser(); // chrome, firefox, in-app, etc.

// Detect bots
$isBot = UAParser::isBot();

// Get original UA string
$ua = UAParser::getOriginalUserAgent();

// Get device type
$device = UAParser::getDeviceType(); // phone, tablet, desktop, etc.
```

Configuration
-------------

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --provider="Ubxty\UAParser\UAParserServiceProvider" --tag="config"
```

Methods
-------

[](#methods)

- getPlatform(): string
- getBrowser(): string
- isBot(): bool
- getOriginalUserAgent(): ?string
- getDeviceType(): string
- getBrowserVersion(): string
- getPlatformVersion(): string

License
-------

[](#license)

MIT

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance48

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~48 days

Total

2

Last Release

418d ago

### Community

Maintainers

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

---

Top Contributors

[![ravdeepsingh22](https://avatars.githubusercontent.com/u/13014642?v=4)](https://github.com/ravdeepsingh22 "ravdeepsingh22 (1 commits)")[![ubxty](https://avatars.githubusercontent.com/u/48719351?v=4)](https://github.com/ubxty "ubxty (1 commits)")

### Embed Badge

![Health badge](/badges/ubxty-ubx-ua-parser/health.svg)

```
[![Health](https://phpackages.com/badges/ubxty-ubx-ua-parser/health.svg)](https://phpackages.com/packages/ubxty-ubx-ua-parser)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M682](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M210](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M857](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[mrmarchone/laravel-auto-crud

Laravel Auto CRUD helps you streamline development and save time.

28711.8k2](/packages/mrmarchone-laravel-auto-crud)

PHPackages © 2026

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