PHPackages                             visernic/laravel-device-detector - 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. visernic/laravel-device-detector

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

visernic/laravel-device-detector
================================

A Laravel wrapper for the DeviceDetector library

41PHPCI passing

Since Nov 4Pushed 6mo agoCompare

[ Source](https://github.com/md-mostafa-niloy/laravel-device-detector)[ Packagist](https://packagist.org/packages/visernic/laravel-device-detector)[ RSS](/packages/visernic-laravel-device-detector/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Device Detector
=======================

[](#laravel-device-detector)

A Laravel wrapper for the [Matomo DeviceDetector](https://github.com/matomo-org/device-detector) library.

---

🚀 Installation
--------------

[](#-installation)

```
composer require visernic/laravel-device-detector
```

---

⚙️ Configuration
----------------

[](#️-configuration)

Publish config file:

```
php artisan vendor:publish --provider="Visernic\\DeviceDetector\\DeviceDetectorServiceProvider" --tag="config"
```

---

🧠 Usage Example
---------------

[](#-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
----------

[](#‍-author)

**Md Mostafa Niloy (Visernic)**
📧
🌐

---

🪪 License
---------

[](#-license)

MIT © 2025 Visernic

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance47

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/bede246b4a4cd883717b877d749b799806364a0e92170a7583e7bce045c783cb?d=identicon)[md-mostafa-niloy](/maintainers/md-mostafa-niloy)

---

Top Contributors

[![md-mostafa-niloy](https://avatars.githubusercontent.com/u/236189153?v=4)](https://github.com/md-mostafa-niloy "md-mostafa-niloy (10 commits)")

### Embed Badge

![Health badge](/badges/visernic-laravel-device-detector/health.svg)

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

PHPackages © 2026

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