raindrop/mobiledetect-bundle

Symfony Raindrop Mobile Detect Bundle

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

This package is not auto-updated.

Last update: 2024-11-09 14:50:28 UTC


README

Build Status

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

INSTALLATION:

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:

<?php
// app/AppKernel.php

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

Now the bundle is enabled.