PHPackages                             thormeier/mobile-detect-light-bundle - 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. [Templating &amp; Views](/categories/templating)
4. /
5. thormeier/mobile-detect-light-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

thormeier/mobile-detect-light-bundle
====================================

Symfony2 bundle for easy usage of mobiledetect class in Twig http://mobiledetect.net/

1.0.4(12y ago)36.1kMITPHP &gt;=5.3.3

Since Mar 31Pushed 12y ago1 watchersCompare

[ Source](https://github.com/thormeier/MobileDetectLightBundle)[ Packagist](https://packagist.org/packages/thormeier/mobile-detect-light-bundle)[ RSS](/packages/thormeier-mobile-detect-light-bundle/feed)WikiDiscussions master Synced today

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

MobileDetectLightBundle
=======================

[](#mobiledetectlightbundle)

[![Build Status](https://camo.githubusercontent.com/f3581398011846596fcc7670c0057677bbcbd53f2e8af40d8da1b2a2ef06f767/68747470733a2f2f7472617669732d63692e6f72672f74686f726d656965722f4d6f62696c654465746563744c6967687442756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/thormeier/MobileDetectLightBundle)

Introduction
------------

[](#introduction)

This Symfony2 bundle provides three twig functions to check if the client is on a mobile or tablet device. This bundle makes use of the class provided by . This bundle is built to be as lightweight as possible to provide a possibility to alter Twig templates according to the clients device.

Installation
------------

[](#installation)

### Step 1: Composer require

[](#step-1-composer-require)

```
$ php composer.phar require "thormeier/mobile-detect-light-bundle":"1.0.*"

```

### Step2: Enable the bundle in the kernel

[](#step2-enable-the-bundle-in-the-kernel)

```
