Download the PHP package vuthaihoc/laravel-user-device without Composer
On this page you can find all versions of the php package vuthaihoc/laravel-user-device. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vuthaihoc/laravel-user-device
More information about vuthaihoc/laravel-user-device
Files in vuthaihoc/laravel-user-device
Package laravel-user-device
Short Description A modern Laravel package replacing jenssegers/agent, acting as a wrapper for MobileDetect.
License
Informations about the package laravel-user-device
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
- PHP >= 8.2
- Laravel 12.0 or 13.0+
mobiledetect/mobiledetectlib^4.0
Installation
You can install the package via composer:
Configuration
The package automatically registers its ServiceProvider and Facade thanks to Laravel Package Discovery. No additional configuration is needed.
Usage
You can use the \Agent facade directly in your Laravel application just like you did with jenssegers/agent:
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
The MIT License (MIT).
All versions of laravel-user-device with dependencies
mobiledetect/mobiledetectlib Version ^4.0
illuminate/support Version ^12.0|^13.0