PHPackages                             timeonegroup/udger-php - 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. timeonegroup/udger-php

ActiveLibrary

timeonegroup/udger-php
======================

PHP agent string parser based on Udger https://udger.com/products/local\_parser

5.0.1(3y ago)0171MITPHPPHP &gt;=8.0

Since Jan 22Pushed 3y agoCompare

[ Source](https://github.com/TimeOne-Group/udger-php)[ Packagist](https://packagist.org/packages/timeonegroup/udger-php)[ RSS](/packages/timeonegroup-udger-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (5)Versions (13)Used By (0)

Udger client for PHP (data ver. 3)
==================================

[](#udger-client-for-php-data-ver-3)

Fork from original lib : [Udger](https://github.com/udger/udger-php)

Local parser is very fast and accurate useragent string detection solution. Enables developers to locally install and integrate a highly-scalable product. We provide the detection of the devices (personal computer, tablet, Smart TV, Game console etc.), operating system, client SW type (browser, e-mail client etc.) and devices market name (example: Sony Xperia Tablet S, Nokia Lumia 820 etc.). It also provides information about IP addresses (Public proxies, VPN services, Tor exit nodes, Fake crawlers, Web scrapers, Datacenter name .. etc.)

- Tested with more the 50.000 unique user agents.
- Up to date data provided by

### Requirements

[](#requirements)

- php &gt;= 7.2.0
- [PDO](https://www.php.net/manual/en/book.pdo.php)

#### For local DB

[](#for-local-db)

- [ext-sqlite3](https://php.net/manual/en/book.sqlite3.php)
- datafile v3 (udgerdb\_v3.dat) from

#### For DB MySQL

[](#for-db-mysql)

- PDO MySQL

### Features

[](#features)

- Fast
- LRU cache
- Released under the MIT
- From local file or MySQL server

### Install

[](#install)

```
composer require timeonegroup/udger-php
```

### Usage

[](#usage)

You should review the included examples (`parse.php`, `account.php`)

#### Examples

[](#examples)

##### With MySQL

[](#with-mysql)

```
use Udger\ParserFactory;

require_once dirname(__DIR__) . '/vendor/autoload.php';

// creates a new UdgerParser object
$parser = ParserFactory::buildParserFromMySQL('mysql:host=db;dbname=udger;charset=UTF8', 'udger', 'udger');
$parser->setUA('Mozilla/5.0 (Windows NT 10.0; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0');
$parser->setIP("66.249.64.73");

$ret = $parser->parse();
```

##### With Data file

[](#with-data-file)

```
use Udger\ParserFactory;

require_once dirname(__DIR__) . '/vendor/autoload.php';

// creates a new UdgerParser object
$parser = ParserFactory::buildParserFromDataFile(sys_get_temp_dir() . '/udgercache/udgerdb_v3.dat');
$parser->setUA('Mozilla/5.0 (Windows NT 10.0; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0');
$parser->setIP("66.249.64.73");

$ret = $parser->parse();
```

### Develop

[](#develop)

### Initialize

[](#initialize)

```
docker compose up db -d
docker compose run --rm init
```

### Running tests

[](#running-tests)

```
docker compose run --rm php ./vendor/bin/codecept run
```

### Automatic updates download

[](#automatic-updates-download)

- for autoupdate data use Udger data updater ()

### Documentation for programmers

[](#documentation-for-programmers)

-

### Author

[](#author)

[TimeOne Group](https://www.timeonegroup.com)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor2

2 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 ~253 days

Recently: every ~516 days

Total

11

Last Release

1238d ago

Major Versions

v1.4.1 → v3.0.02016-07-16

3.1.3 → 4.0.02021-04-09

4.0.1 → 5.0.12022-12-27

PHP version history (4 changes)v1.4.0PHP &gt;=5.3.0

4.0.0PHP &gt;=5.6.0

4.0.1PHP &gt;=7.2.0

5.0.1PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0017b69c18136f3e287409158afe0cf54ff9d5730ddcf6af334745da24aa73bb?d=identicon)[fabien.barbaud](/maintainers/fabien.barbaud)

---

Top Contributors

[![mallat](https://avatars.githubusercontent.com/u/5707281?v=4)](https://github.com/mallat "mallat (22 commits)")[![fabienbarbaud](https://avatars.githubusercontent.com/u/12396592?v=4)](https://github.com/fabienbarbaud "fabienbarbaud (16 commits)")[![joewreschnig](https://avatars.githubusercontent.com/u/1330897?v=4)](https://github.com/joewreschnig "joewreschnig (3 commits)")[![moknomo](https://avatars.githubusercontent.com/u/2641095?v=4)](https://github.com/moknomo "moknomo (3 commits)")[![adaamz](https://avatars.githubusercontent.com/u/4347332?v=4)](https://github.com/adaamz "adaamz (1 commits)")[![shawnbayer](https://avatars.githubusercontent.com/u/10172577?v=4)](https://github.com/shawnbayer "shawnbayer (1 commits)")[![tiborb](https://avatars.githubusercontent.com/u/3955068?v=4)](https://github.com/tiborb "tiborb (1 commits)")

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/timeonegroup-udger-php/health.svg)

```
[![Health](https://phpackages.com/badges/timeonegroup-udger-php/health.svg)](https://phpackages.com/packages/timeonegroup-udger-php)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M79](/packages/google-cloud-core)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67410.3M25](/packages/googleads-googleads-php-lib)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)

PHPackages © 2026

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