PHPackages                             elfsundae/agent - 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. elfsundae/agent

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

elfsundae/agent
===============

A PHP mobile/desktop User-Agent parser, with support for Laravel.

3.0.0(8y ago)028MITPHPPHP &gt;=5.6.4

Since Jun 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ElfSundae/agent)[ Packagist](https://packagist.org/packages/elfsundae/agent)[ Docs](https://github.com/ElfSundae/agent)[ RSS](/packages/elfsundae-agent/feed)WikiDiscussions master Synced 2mo ago

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

Agent
=====

[](#agent)

[![Latest Version on Packagist](https://camo.githubusercontent.com/43909841966a4114f56013c78d81b818e378d8120f5dc01cbce26886215c4d58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c6673756e6461652f6167656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/elfsundae/agent)[![Build Status](https://camo.githubusercontent.com/2668e32b6a82f4d39b41274b0d4100fafbf9a2c78c454002825d8369ed01dad7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f456c6653756e6461652f6167656e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/ElfSundae/agent)[![StyleCI](https://camo.githubusercontent.com/ef89568328919bcdc62c0ccdbcd3809d9877a28dd85e49e48339a39cc3e7a775/68747470733a2f2f7374796c6563692e696f2f7265706f732f39343634333235322f736869656c64)](https://styleci.io/repos/94643252)[![SensioLabsInsight](https://camo.githubusercontent.com/507871c52b4d587a75db170a66991b430d8672b32b44a698e4ee55af88b39b2b/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f34336239346363612d353563642d343465612d613862332d3433666530333137316539392e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/43b94cca-55cd-44ea-a8b3-43fe03171e99)[![Quality Score](https://camo.githubusercontent.com/04d37412bd2a93194158281b703a6f2087e57c7102279deb9cb73985309e6d26/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f456c6653756e6461652f6167656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ElfSundae/agent)

A PHP mobile/desktop User-Agent parser, with support for Laravel, based on [`jenssegers/agent`](https://github.com/jenssegers/agent) which based on the [Mobile Detect](https://github.com/serbanghita/Mobile-Detect).

Installation
------------

[](#installation)

```
$ composer require elfsundae/agent
```

Laravel (Optional)
------------------

[](#laravel-optional)

If your application runs on Lumen, or on earlier Laravel than v5.5 which does not support [package discovery](https://laravel.com/docs/5.5/packages#package-discovery), you need to register the service provider manually:

```
ElfSundae\Agent\AgentServiceProvider::class,
```

And add the `Agent` facade alias:

```
'Agent' => ElfSundae\Agent\Facades\Agent::class,
```

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT License](LICENSE.md).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Recently: every ~58 days

Total

6

Last Release

3019d ago

Major Versions

1.0.1 → 2.0.02017-06-18

2.2.0 → 3.0.02018-02-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c708b9bd4fcd09378112b235c310162a01d656b85946f1357562b6820c75ee6?d=identicon)[ElfSundae](/maintainers/ElfSundae)

---

Top Contributors

[![ElfSundae](https://avatars.githubusercontent.com/u/526008?v=4)](https://github.com/ElfSundae "ElfSundae (57 commits)")

---

Tags

browserlaravelmobileuser agentAgent

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/elfsundae-agent/health.svg)

```
[![Health](https://phpackages.com/badges/elfsundae-agent/health.svg)](https://phpackages.com/packages/elfsundae-agent)
```

###  Alternatives

[jenssegers/agent

Desktop/mobile user agent parser with support for Laravel, based on Mobiledetect

4.8k67.8M440](/packages/jenssegers-agent)[hisorange/browser-detect

Browser &amp; Mobile detection package for Laravel.

1.1k10.1M50](/packages/hisorange-browser-detect)[propa/laravel-browscap

Browscap-PHP integration for Laravel 5-12

1060.3k](/packages/propa-laravel-browscap)[karmendra/laravel-agent-detector

Laravel wrapper for matomo-org/device-detector user agent parser

1241.6k](/packages/karmendra-laravel-agent-detector)[al-saloul/agent

Desktop/mobile user agent parser with support for Laravel, based on Mobiledetect

1511.5k1](/packages/al-saloul-agent)

PHPackages © 2026

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