PHPackages                             larapack/mobiledetect - 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. larapack/mobiledetect

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

larapack/mobiledetect
=====================

Laravel package for MobileDetect

1.0(10y ago)43143PHPPHP &gt;=5.3.0

Since Jun 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/larapack/mobiledetect)[ Packagist](https://packagist.org/packages/larapack/mobiledetect)[ RSS](/packages/larapack-mobiledetect/feed)WikiDiscussions master Synced 1mo ago

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

MobilDetect package for Laravel
===============================

[](#mobildetect-package-for-laravel)

[![Build Status](https://camo.githubusercontent.com/568abe505d5385954ceec9bbfa545375132b5026596f7e6fc8fbbe33c477f291/68747470733a2f2f7472617669732d63692e6f72672f6c6172617061636b2f6d6f62696c656465746563742e737667)](https://travis-ci.org/larapack/laravel-mobiledetect)[![Total Downloads](https://camo.githubusercontent.com/6b1c03336ff4025217aea8072ec2c4a629339d3234103b5ad4ba1a5826db7c11/68747470733a2f2f706f7365722e707567782e6f72672f6c6172617061636b2f6d6f62696c656465746563742f646f776e6c6f6164732e737667)](https://packagist.org/packages/larapack/mobiledetect)[![Latest Stable Version](https://camo.githubusercontent.com/a1ab9d987d4bb516ab21d406c49eb79d7db079b66a6ab770bc7bcb3426249fa5/68747470733a2f2f706f7365722e707567782e6f72672f6c6172617061636b2f6d6f62696c656465746563742f762f737461626c652e737667)](https://packagist.org/packages/larapack/mobiledetect)[![Latest Unstable Version](https://camo.githubusercontent.com/846bd2bb43ab5ac09e10fb9cbb00dbc92576bc51bdc182921269d9e163bb8d60/68747470733a2f2f706f7365722e707567782e6f72672f6c6172617061636b2f6d6f62696c656465746563742f762f756e737461626c652e737667)](https://packagist.org/packages/larapack/mobiledetect)[![License](https://camo.githubusercontent.com/bb5ae1f22878091788ef0137638c1877aba2271d2d2e2cbeb70def345c9b59d8/68747470733a2f2f706f7365722e707567782e6f72672f6c6172617061636b2f6d6f62696c656465746563742f6c6963656e73652e737667)](https://packagist.org/packages/larapack/mobiledetect)

Info
====

[](#info)

Version: 1.0
Author: Mark Topper [\[Facebook\]](https://www.facebook.com/marktopper) [\[Github\]](https://github.com/marktopper) [\[Twitter\]](https://www.twitter.com/webmanio/)
Website: [www.webman.io](https://www.webman.io/larapack/mobiledetect)
Email:

### Installation

[](#installation)

First add the package to your composer by running command `composer require larapack/mobiledetect 1.*` or by adding the following code to `composer.json` followed by running the command `composer update`:

```
{
    "require": {
        "larapack/mobiledetect": "1.*"
    }
}

```

Add the alias to the aliases in your `app/config/app.php`:

```
'aliases' => array(
    // ...
    'MobileDetect' => 'Larapack\MobileDetect\MobileDetect',
)

```

### Usage

[](#usage)

The following examples assume you use the MobileDetect class name as alias, but the packages is namespaced so you can name the facade as you wish.

```
$detect = MobileDetect;

if ($detect->isMobile()){
  // this is a mobile
}
else if ($detect->isTablet()){
  // this is a tablet
}

if ($detect->isIE()){
  // this is IE -.-'
}

```

More examples on

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

3996d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d02cdb7563da13d24667b14025c67a4e2fc52a104becc8bfe384da21d056768?d=identicon)[marktopper](/maintainers/marktopper)

---

Top Contributors

[![marktopper](https://avatars.githubusercontent.com/u/2232539?v=4)](https://github.com/marktopper "marktopper (17 commits)")

### Embed Badge

![Health badge](/badges/larapack-mobiledetect/health.svg)

```
[![Health](https://phpackages.com/badges/larapack-mobiledetect/health.svg)](https://phpackages.com/packages/larapack-mobiledetect)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[shetabit/visitor

Laravel visitor

565578.2k8](/packages/shetabit-visitor)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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