PHPackages                             vuthaihoc/laravel-user-device - 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. vuthaihoc/laravel-user-device

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

vuthaihoc/laravel-user-device
=============================

A modern Laravel package replacing jenssegers/agent, acting as a wrapper for MobileDetect.

v1.0.0(1mo ago)046↓66.7%PHPPHP ^8.2

Since May 26Pushed 1mo agoCompare

[ Source](https://github.com/vuthaihoc/laravel-user-device)[ Packagist](https://packagist.org/packages/vuthaihoc/laravel-user-device)[ RSS](/packages/vuthaihoc-laravel-user-device/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel User Device (Agent)
===========================

[](#laravel-user-device-agent)

A modern Laravel package replacing `jenssegers/agent`, acting as a lightweight wrapper around `mobiledetect/mobiledetectlib` v4. It maintains backwards compatibility with `\Agent::...` calls by providing the same facade methods.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- Laravel 12.0 or 13.0+
- `mobiledetect/mobiledetectlib` ^4.0

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

[](#installation)

You can install the package via composer:

```
composer require vuthaihoc/laravel-user-device
```

Configuration
-------------

[](#configuration)

The package automatically registers its ServiceProvider and Facade thanks to Laravel Package Discovery. No additional configuration is needed.

Usage
-----

[](#usage)

You can use the `\Agent` facade directly in your Laravel application just like you did with `jenssegers/agent`:

```
// Basic device detection
$device = \Agent::device(); // Returns device name or false
$robot = \Agent::robot();   // Returns robot name or false

// MobileDetect methods (forwarded dynamically)
\Agent::isMobile();
\Agent::isTablet();
\Agent::is('iPhone');
\Agent::getUserAgent();

// Legacy methods compatibility
\Agent::getBrowsers();
\Agent::getOperatingSystems();
\Agent::getPlatforms();
\Agent::getDesktopDevices();
\Agent::getDetectionRulesExtended();
\Agent::getScriptVersion();
```

Included Compatibility Methods
------------------------------

[](#included-compatibility-methods)

This package implements or forwards the following methods to ensure a smooth transition from `jenssegers/agent`:

- `device()`
- `robot()`
- `getDetectionRulesExtended()`
- `getBrowsers()`
- `getOperatingSystems()`
- `getPlatforms()`
- `getDesktopDevices()`
- `getProperties()`
- `getScriptVersion()`
- `getPhoneDevices()`
- `getTabletDevices()`
- `getUserAgents()`
- `getUtilities()`
- `getMobileDetectionRules()`

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance88

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

59d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2509658?v=4)[Stupid Dev](/maintainers/vuthaihoc)[@vuthaihoc](https://github.com/vuthaihoc)

---

Top Contributors

[![vuthaihoc](https://avatars.githubusercontent.com/u/2509658?v=4)](https://github.com/vuthaihoc "vuthaihoc (1 commits)")

### Embed Badge

![Health badge](/badges/vuthaihoc-laravel-user-device/health.svg)

```
[![Health](https://phpackages.com/badges/vuthaihoc-laravel-user-device/health.svg)](https://phpackages.com/packages/vuthaihoc-laravel-user-device)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[shetabit/visitor

Laravel visitor

567637.9k14](/packages/shetabit-visitor)

PHPackages © 2026

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