PHPackages                             exs/php-user-agent-bundle - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. exs/php-user-agent-bundle

ActiveSymfony-bundle[Parsing &amp; Serialization](/categories/parsing)

exs/php-user-agent-bundle
=========================

Wrapper for global function in https://github.com/donatj/PhpUserAgent/

v2.0.0(6y ago)11.2k↓100%MITPHPPHP &gt;=7.2CI failing

Since Sep 16Pushed 6y ago9 watchersCompare

[ Source](https://github.com/ExSituMarketing/EXS-PhpUserAgentBundle)[ Packagist](https://packagist.org/packages/exs/php-user-agent-bundle)[ Docs](https://github.com/ExSituMarketing/EXS-PhpUserAgentBundle)[ RSS](/packages/exs-php-user-agent-bundle/feed)WikiDiscussions master Synced 1mo ago

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

EXS-PhpUserAgentBundle
======================

[](#exs-phpuseragentbundle)

Wrapper for global function in

Installing the # EXS-PhpUserAgentBundle in a new Symfony2 project
-----------------------------------------------------------------

[](#installing-the--exs-phpuseragentbundle-in-a-new-symfony2-project)

Edit composer.json file with # EXS-PhpUserAgentBundle dependency:

```
//composer.json
//...
"require": {
    //other bundles
    "exs/php-user-agent-bundle": "^1.0"
},
```

Save the file and have composer update the project via the command line:

```
composer update exs/php-user-agent-bundle"
```

Update the app/AppKernel.php

```
//app/AppKernel.php
//...
public function registerBundles()
{
    $bundles = array(
    //Other bundles
    new EXS\PhpUserAgentBundle\EXSPhpUserAgentBundle(),
);
```

Usage
-----

[](#usage)

```
// initiate the service
$service = new EXS\PhpUserAgentBundle\Services\PhpUserAgentService();
$service->parseUserAgent(USER_AGENT_STRING_HERE);

// Get the detected platform type
$service->getFlatform();

// Get the detected browser type
$service->getBrowser();

// Get the detected browser version
$service->getVersion();
```

#### Contributing

[](#contributing)

Anyone and everyone is welcome to contribute.

If you have any questions or suggestions please [let us know](http://www.ex-situ.com/).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~1059 days

Total

2

Last Release

2462d ago

Major Versions

v1.0.0 → v2.0.02019-08-12

PHP version history (2 changes)v1.0.0PHP &gt;=5.3

v2.0.0PHP &gt;=7.2

### Community

Maintainers

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

---

Top Contributors

[![slee1803](https://avatars.githubusercontent.com/u/10144066?v=4)](https://github.com/slee1803 "slee1803 (5 commits)")[![bear218](https://avatars.githubusercontent.com/u/48725585?v=4)](https://github.com/bear218 "bear218 (3 commits)")

---

Tags

phpsymfonybundlebrowserparseruseragentuser agentbrowser detection

### Embed Badge

![Health badge](/badges/exs-php-user-agent-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/exs-php-user-agent-bundle/health.svg)](https://phpackages.com/packages/exs-php-user-agent-bundle)
```

###  Alternatives

[donatj/phpuseragentparser

Lightning fast, minimalist PHP UserAgent string parser.

60417.1M60](/packages/donatj-phpuseragentparser)[thadafinser/user-agent-parser

UserAgent parsing done right http://useragent.mkf.solutions/

249316.9k2](/packages/thadafinser-user-agent-parser)[presta/sitemap-bundle

A Symfony bundle that provides tools to build your application sitemap.

3929.4M28](/packages/presta-sitemap-bundle)[eprofos/user-agent-analyzer

A powerful Symfony bundle for user-agent analysis. It provides accurate detection of operating systems (Windows, MacOS, Linux, iOS, Android...), browsers (Chrome, Firefox, Safari...), and device types (Desktop, Mobile, Tablet, TV...). Supports specific version detection and includes advanced handling of special cases like WebViews and compatibility modes. Features comprehensive logging and detailed analysis results.

182.3k](/packages/eprofos-user-agent-analyzer)[symfony-bundles/json-request-bundle

Symfony JsonRequest Bundle

501.6M6](/packages/symfony-bundles-json-request-bundle)

PHPackages © 2026

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