PHPackages                             bee4/useragent-classify - 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. bee4/useragent-classify

Abandoned → [bee4/useragent-classifier](/?search=bee4%2Fuseragent-classifier)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

bee4/useragent-classify
=======================

A library to work with UserAgent detection and classification

v1.0.1(10y ago)52251[1 issues](https://github.com/bee4/useragent-classify/issues)Apache-2.0PHPPHP &gt;=5.4

Since Jan 12Pushed 10y ago4 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

bee4/useragent-classifier
=========================

[](#bee4useragent-classifier)

[![Build Status](https://camo.githubusercontent.com/bb3db6268dfc96c569ba3eee32ff10e35c26a2fadf54b64c2d5f2b409d2466e5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f626565342f757365726167656e742d636c61737369666965722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bee4/useragent-classifier)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e4039d3117405b8686da8424a911e9e08d27ec168c3f4a2455fd41d012afa634/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f626565342f757365726167656e742d636c61737369666965722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bee4/useragent-classifier/?branch=develop)[![Code Coverage](https://camo.githubusercontent.com/0d31862b4597721dcf9aa124c75c2325cf1d136373ed46f77c91870d79683715/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f626565342f757365726167656e742d636c61737369666965722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bee4/useragent-classifier/)[![SensiolabInsight](https://camo.githubusercontent.com/bad5cca33d80f903854d831d1df24883bf1c48aaff867c78a0f9a55ea4f12508/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f33663136356265622d323432352d343636392d613364612d6331373934633666373333372e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/3f165beb-2425-4669-a3da-c1794c6f7337)

[![License](https://camo.githubusercontent.com/926ed9d8748152870f548d35e010ca41f9a4be2a69f78ed5474bd8ca12e855e3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626565342f757365726167656e742d636c61737369666965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bee4/useragent-classifier)

This library allow to track and detect who is behind useragents :)

Installing
----------

[](#installing)

[![Latest Stable Version](https://camo.githubusercontent.com/da7f955b45a33a560a1fadc3b5d9906acd39d5cf815d7b41ec54831947b70c04/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626565342f757365726167656e742d636c61737369666965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bee4/useragent-classifier)[![Total Downloads](https://camo.githubusercontent.com/457908895645f7b8dff9c0e80101b4f93e16b501a88b5ff430f29ee89f9b290f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f626565342f757365726167656e742d636c61737369666965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bee4/useragent-classifier)

This project can be installed using Composer. Add the following to your composer.json:

```
{
    "require": {
        "bee4/useragent-classifier": "~1.0"
    }
}
```

or run this command:

```
composer require bee4/useragent-classifier:~1.0
```

Usage
-----

[](#usage)

This library is composed of a `Detector` object and different `Bots` implementation.

```
use Bee4\UserAgent\Classifier\Detector;

$ua = 'Mozilla/5.0 (compatible; Mail.RU/2.0)';
$bot = Detector::whoIs($ua); //$bot is a Bots\MailRU instance

$bot->getBot(); //Here we get `mailru`
$bot->getName(); //Here we get `mailru-bot`

$ua = 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)';
$bot = Detector::whoIs($ua); //$bot is a Bots\Google instance

$bot->getBot(); //Here we get `google`
$bot->getName(); //Here we get `google-bot`
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~128 days

Total

3

Last Release

3888d ago

Major Versions

v0.0.0 → v1.0.02015-01-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ab317af777924eeefe097aa3e0a423f069eaac20280e3241631e1a950e17f47?d=identicon)[shulard](/maintainers/shulard)

---

Top Contributors

[![shulard](https://avatars.githubusercontent.com/u/482993?v=4)](https://github.com/shulard "shulard (68 commits)")

### Embed Badge

![Health badge](/badges/bee4-useragent-classify/health.svg)

```
[![Health](https://phpackages.com/badges/bee4-useragent-classify/health.svg)](https://phpackages.com/packages/bee4-useragent-classify)
```

###  Alternatives

[reinink/remember-query-strings

Laravel middleware that automatically remembers and restores query strings.

76598.2k3](/packages/reinink-remember-query-strings)[arielcr/numero-a-letras

Convierte un número a su valor correspondiente en letras.

51115.7k](/packages/arielcr-numero-a-letras)

PHPackages © 2026

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