Symfony Raindrop Mobile Detect Bundle

dev-master 2013-10-30 10:41 UTC


Build Status

This bundle adds support for detect mobile devices. It uses the lightweight PHP class Mobile_Detect.


First add the dependency to your composer.json` file:

"require": {
    "raindrop/mobiledetect-bundle": "dev-master"

Then install the bundle with the command:

php composer.phar update

Enable the bundle in your application kernel:

// app/AppKernel.php

public function registerBundles()
    $bundles = array(
        // ...
        new Raindrop\MobileDetectBundle\RaindropMobileDetectBundle(),

Now the bundle is enabled.