PHPackages                             jbinfo/mobile-detect-service-provider - 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. jbinfo/mobile-detect-service-provider

ActiveLibrary

jbinfo/mobile-detect-service-provider
=====================================

A mobile detect ServiceProvider for Silex, based on Mobile-Detect library.

v1.1.0(12y ago)25332.2k↓42.3%8[1 PRs](https://github.com/jbinfo/MobileDetectServiceProvider/pulls)MITPHPPHP &gt;=5.3.0

Since Apr 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jbinfo/MobileDetectServiceProvider)[ Packagist](https://packagist.org/packages/jbinfo/mobile-detect-service-provider)[ Docs](https://github.com/jbinfo/MobileDetectServiceProvider)[ RSS](/packages/jbinfo-mobile-detect-service-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

MobileDetectServiceProvider
===========================

[](#mobiledetectserviceprovider)

A mobile detect ServiceProvider for Silex, based on Mobile-Detect library.

Fetch
-----

[](#fetch)

The recommended way to install MobileDetectServiceProvider is [through composer](http://getcomposer.org).

Just create a composer.json file for your project:

```
{
    "require": {
        "jbinfo/mobile-detect-service-provider": "~1",
        "silex/silex": "~1"
    }
}
```

Register
--------

[](#register)

```
use Silex\Application;
use Binfo\Silex\MobileDetectServiceProvider;

$app = new Application();

$app->register(new MobileDetectServiceProvider());
```

Usage
-----

[](#usage)

```
if ($app["mobile_detect"]->isMobile()) {
    echo "Mobile device";

} else {
    echo "Desktop device";
}
```

```
echo $app["mobile_detect"]->version('iPad');
```

For more informations check the website of [Mobile-Detect library](http://mobiledetect.net/).

[![Bitdeli Badge](https://camo.githubusercontent.com/e2c798235603953a37fbd6618a6f64065138e56be0f186454123ba4686843827/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f6a62696e666f2f6d6f62696c656465746563747365727669636570726f76696465722f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% 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

Every ~230 days

Total

2

Last Release

4563d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9f01493cf4ac33c4ce582f335e50b6c25102335e3373dd794af5531362d832c?d=identicon)[jbinfo](/maintainers/jbinfo)

---

Top Contributors

[![jbinfo](https://avatars.githubusercontent.com/u/761378?v=4)](https://github.com/jbinfo "jbinfo (15 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

mobilemobile detectphp mobile detectsilex

### Embed Badge

![Health badge](/badges/jbinfo-mobile-detect-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/jbinfo-mobile-detect-service-provider/health.svg)](https://phpackages.com/packages/jbinfo-mobile-detect-service-provider)
```

###  Alternatives

[mobiledetect/mobiledetectlib

Mobile\_Detect is a lightweight PHP class for detecting mobile devices. It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

10.7k159.4M431](/packages/mobiledetect-mobiledetectlib)[jenssegers/agent

Desktop/mobile user agent parser with support for Laravel, based on Mobiledetect

4.8k67.8M440](/packages/jenssegers-agent)[suncat/mobile-detect-bundle

Symfony2/3/4 bundle for detect mobile devices, managing mobile view types, redirect to mobile version.

4035.3M7](/packages/suncat-mobile-detect-bundle)[chronon/mobile_detect

A CakePHP plugin component for identifying mobile devices using the Mobile\_Detect project.

24246.5k1](/packages/chronon-mobile-detect)[bes/mobiledetect-twig-extension

MobileDetect-integration for Twig

18237.3k](/packages/bes-mobiledetect-twig-extension)

PHPackages © 2026

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