Download the PHP package reefki/laravel-device-detector without Composer
On this page you can find all versions of the php package reefki/laravel-device-detector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download reefki/laravel-device-detector
More information about reefki/laravel-device-detector
Files in reefki/laravel-device-detector
Package laravel-device-detector
Short Description Laravel wrapper for Matomo's Universal Device Detection library.
License MIT
Informations about the package laravel-device-detector
Laravel Device Detector
The Laravel wrapper for Matomo Universal Device Detection library seamlessly integrates device detection capabilities into Laravel applications.
Installation
This package can be installed through Composer.
Optionally, you can publish the config file of this package with this command:
Usage
Detect device from a user agent string:
Detect device from a user agent string and optional hints:
Detect device from a request instance:
Detect device directly from a request instance:
All of the above methods wil return a DeviceDetector\DeviceDetector instance which you can use to get the information about the device:
Read the Matomo's Universal Device Detection library readme for more information on how to use the returned instance.
Testing
Run the tests with:
Credits
- Matomo Universal Device Detection
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-device-detector with dependencies
illuminate/cache Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
matomo/device-detector Version ^6.0