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: 9 months ago
JSON representation
Symfony2 bundle for easy usage of mobiledetect class in Twig http://mobiledetect.net/
- Host: GitHub
- URL: https://github.com/thormeier/mobiledetectlightbundle
- Owner: thormeier
- License: mit
- Created: 2014-03-30T14:22:56.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-31T09:49:11.000Z (almost 12 years ago)
- Last Synced: 2025-02-14T11:19:49.882Z (11 months ago)
- Topics: symfony2-bundle, twig, twig-functions
- Size: 242 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
MobileDetectLightBundle
=======================
[](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