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

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

udger/udger-php-v4
==================

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

4.0.3(2y ago)2159.0k—7.8%2MITPHPPHP &gt;=5.5.0

Since Aug 21Pushed 2y ago2 watchersCompare

[ Source](https://github.com/udger/udger-php-v4)[ Packagist](https://packagist.org/packages/udger/udger-php-v4)[ RSS](/packages/udger-udger-php-v4/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

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

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

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 1.000.000 unique user agents.
- Processes Google User-Agent Client Hints
- Up to date data provided by

### Requirements

[](#requirements)

- php &gt;= 5.5.0
- ext-sqlite3 ()
- datafile v4 (udgerdb\_v4.dat) from

### Features

[](#features)

- Fast
- LRU cache
- Released under the MIT

### Install

[](#install)

```
composer require udger/udger-php-v4

```

### Usage

[](#usage)

You should review the included examples (`parseUA-IP.php`, `parseSec-Ch.php` ... etc)

Here's a quick example:

```
$factory = new Udger\ParserFactory(sys_get_temp_dir() . "/udgercache/udgerdb_v4.dat");
$parser = $factory->getParser();

// enable/disable LRU cache
$parser->setCacheEnable(false); // default is enable
//$parser->setCacheSize(4000);  // default size is 3000

try {
    $parser->setSecChUa('"Chromium";v="104", " Not A;Brand";v="99", "Google Chrome";v="104"');
    $parser->setUA('Mozilla/5.0 (Linux; Android 11; CPH2001) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36');
    $parser->setSecChUaMobile('?1');
    $parser->setSecChUaFullVersion('"104.0.5112.97"');
    $parser->setSecChUaPlatform('"Android"');
    $parser->setSecChUaPlatformVersion('"11.0.0"');
    $parser->setSecChUaModel('"CPH2001"');
    $ret = $parser->parse();
    print_r($ret);
} catch (Exception $ex) {
    echo "Error: " . $ex->getMessage(). PHP_EOL;
}
```

### Automatic updates download

[](#automatic-updates-download)

- for autoupdate data use Udger data updater ()

### Author

[](#author)

- The Udger.com Team ()

### v3 format

[](#v3-format)

For the previous data format (v3), please use

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~133 days

Total

4

Last Release

967d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/729b63540538eaca1afcc429052a9f62ddeda38a0f0097edb7bad09e00592be2?d=identicon)[mallat](/maintainers/mallat)

---

Top Contributors

[![mallat](https://avatars.githubusercontent.com/u/5707281?v=4)](https://github.com/mallat "mallat (14 commits)")

### Embed Badge

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

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

PHPackages © 2026

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