Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thormeier/mobiledetectlightbundle

Symfony2 bundle for easy usage of mobiledetect class in Twig http://mobiledetect.net/
https://github.com/thormeier/mobiledetectlightbundle

symfony2-bundle twig twig-functions

Last synced: 17 days ago
JSON representation

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

Awesome Lists containing this project

README

        

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

[![Build Status](https://travis-ci.org/thormeier/MobileDetectLightBundle.png?branch=master)](https://travis-ci.org/thormeier/MobileDetectLightBundle)

## 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 http://mobiledetect.net/.
This bundle is built to be as lightweight as possible to provide a possibility to alter Twig templates according to the clients device.

## Installation

### Step 1: Composer require

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

### Step2: Enable the bundle in the kernel