visernic / laravel-device-detector
A Laravel wrapper for the DeviceDetector library
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/visernic/laravel-device-detector
Requires
- php: >=8.0
- illuminate/support: ^9.0|^10.0|^11.0
- matomo/device-detector: ^6.0
This package is auto-updated.
Last update: 2025-12-31 10:08:48 UTC
README
A Laravel wrapper for the Matomo DeviceDetector library.
🚀 Installation
composer require visernic/laravel-device-detector
⚙️ Configuration
Publish config file:
php artisan vendor:publish --provider="Visernic\\DeviceDetector\\DeviceDetectorServiceProvider" --tag="config"
🧠 Usage Example
use DeviceDetector; $device = DeviceDetector::detectRequest(request()); if ($device->isBot()) { // handle bot } else { $client = $device->getClient(); $os = $device->getOs(); $deviceName = $device->getDeviceName(); $brand = $device->getBrandName(); $model = $device->getModel(); }
🧑💻 Author
Md Mostafa Niloy (Visernic)
📧 mostafa@visernic.com
🌐 https://visernic.com
🪪 License
MIT © 2025 Visernic