PHPackages                             tobie/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. tobie/ua-parser

Abandoned → [ua-parser/uap-php](/?search=ua-parser%2Fuap-php)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

tobie/ua-parser
===============

A multi-language port of Browserscope's user agent parser.

v0.3.5(11y ago)2.0k82.1k↓50%4901MITPerl

Since Nov 7Pushed 9y ago120 watchersCompare

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

READMEChangelog (1)Dependencies (5)Versions (4)Used By (1)

ua-parser has moved
===================

[](#ua-parser-has-moved)

This project has moved to a new project space [ua-parser](https://github.com/ua-parser), separating the regexes from the parsers for the different languages into their own repos:

- [uap-core](https://github.com/ua-parser/uap-core) : The regex file necessary to build language ports of Browserscope's user agent parser.
- [uap-clj](https://github.com/ua-parser/uap-clj) : Clojure implementation of ua-parser
- [uap-cpp](https://github.com/ua-parser/uap-cpp) : C++ implementation of ua-parser
- [uap-csharp](https://github.com/ua-parser/uap-csharp) : C# implementation of ua-parser
- [uap-d](https://github.com/ua-parser/uap-d) : D implementation of ua-parser
- [uap-go](https://github.com/ua-parser/uap-go) : Go implementation of ua-parser
- [uap-haskell](https://github.com/ua-parser/uap-haskell) : Haskell implementation of ua-parser
- [uap-java](https://github.com/ua-parser/uap-java) : Java implementation of ua-parser
- [uap-perl](https://github.com/ua-parser/uap-perl) : Perl implementation of ua-parser
- [uap-php](https://github.com/ua-parser/uap-php) : PHP implementation of ua-parser
- [uap-pig](https://github.com/ua-parser/uap-pig) : Pig implementation of ua-parser
- [uap-python](https://github.com/ua-parser/uap-python) : Python implementation of ua-parser
- [uap-r](https://github.com/ua-parser/uap-r) : R implementation of ua-parser
- [uap-ruby](https://github.com/ua-parser/uap-ruby) : A simple, comprehensive Ruby gem for parsing user agent strings with the help of BrowserScope's UA database
- [uap-ref-impl](https://github.com/ua-parser/uap-ref-impl) : JavaScript reference implementation of ua-parser.

**Please contribute to the respective repositories! Thanks.**

---

ua-parser [![Build Status](https://camo.githubusercontent.com/aafc169b92de9b7deff5b39e55a32ffa542e157dcaaa41809e5c218e9c4a9a1b/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f746f6269652f75612d7061727365722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/tobie/ua-parser)
====================================================================================================================================================================================================================================================================================================

[](#ua-parser-)

`ua-parser` is a multi-language port of [BrowserScope](http://www.browserscope.org)'s [user agent string parser](http://code.google.com/p/ua-parser/).

The crux of the original parser--the data collected by [Steve Souders](http://stevesouders.com/) over the years--has been extracted into a separate [YAML file](https://raw.github.com/tobie/ua-parser/master/regexes.yaml) so as to be reusable *as is* by implementations in other programming languages. `ua-parser` is just a small wrapper around this data, along with ongoing improvements to the definitions.

Note that `ua-parser` has now been split out into multiple, distinct repositories, one for the [core definitions](https://github.com/ua-parser/uap-core) and one for each [language implementation](https://github.com/ua-parser). Patches and issues should be raised at those repositories, rather than this one.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity56

Moderate usage in the ecosystem

Community40

Growing community involvement

Maturity55

Maturing project, gaining track record

 Bus Factor3

3 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 ~22 days

Total

2

Last Release

4187d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/79707?v=4)[Lars Strojny](/maintainers/lstrojny)[@lstrojny](https://github.com/lstrojny)

---

Top Contributors

[![dmolsen](https://avatars.githubusercontent.com/u/2746?v=4)](https://github.com/dmolsen "dmolsen (232 commits)")[![tobie](https://avatars.githubusercontent.com/u/3392?v=4)](https://github.com/tobie "tobie (153 commits)")[![lstrojny](https://avatars.githubusercontent.com/u/79707?v=4)](https://github.com/lstrojny "lstrojny (88 commits)")[![elsigh](https://avatars.githubusercontent.com/u/517210?v=4)](https://github.com/elsigh "elsigh (37 commits)")[![bluesmoon](https://avatars.githubusercontent.com/u/35098?v=4)](https://github.com/bluesmoon "bluesmoon (31 commits)")[![Ironholds](https://avatars.githubusercontent.com/u/2487262?v=4)](https://github.com/Ironholds "Ironholds (30 commits)")[![commenthol](https://avatars.githubusercontent.com/u/2604482?v=4)](https://github.com/commenthol "commenthol (29 commits)")[![enemaerke](https://avatars.githubusercontent.com/u/448060?v=4)](https://github.com/enemaerke "enemaerke (29 commits)")[![selwin](https://avatars.githubusercontent.com/u/188658?v=4)](https://github.com/selwin "selwin (24 commits)")[![philipzae](https://avatars.githubusercontent.com/u/4412114?v=4)](https://github.com/philipzae "philipzae (22 commits)")[![sjiang](https://avatars.githubusercontent.com/u/369902?v=4)](https://github.com/sjiang "sjiang (22 commits)")[![jpvincent](https://avatars.githubusercontent.com/u/427625?v=4)](https://github.com/jpvincent "jpvincent (18 commits)")[![nielsbasjes](https://avatars.githubusercontent.com/u/240096?v=4)](https://github.com/nielsbasjes "nielsbasjes (14 commits)")[![ozataman](https://avatars.githubusercontent.com/u/13820?v=4)](https://github.com/ozataman "ozataman (14 commits)")[![yihuanz](https://avatars.githubusercontent.com/u/1387784?v=4)](https://github.com/yihuanz "yihuanz (10 commits)")[![atifaziz](https://avatars.githubusercontent.com/u/20511?v=4)](https://github.com/atifaziz "atifaziz (9 commits)")[![mamod](https://avatars.githubusercontent.com/u/301079?v=4)](https://github.com/mamod "mamod (8 commits)")[![drucifer](https://avatars.githubusercontent.com/u/1613292?v=4)](https://github.com/drucifer "drucifer (6 commits)")[![georgevreilly](https://avatars.githubusercontent.com/u/34297?v=4)](https://github.com/georgevreilly "georgevreilly (6 commits)")[![basvandijk](https://avatars.githubusercontent.com/u/576355?v=4)](https://github.com/basvandijk "basvandijk (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19562.3M1.3k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

96374.6k23](/packages/friendsoftypo3-content-blocks)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)

PHPackages © 2026

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