Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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/
- Host: GitHub
- URL: https://github.com/thormeier/mobiledetectlightbundle
- Owner: thormeier
- License: mit
- Created: 2014-03-30T14:22:56.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-31T09:49:11.000Z (almost 11 years ago)
- Last Synced: 2024-11-12T00:29:35.588Z (about 2 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
=======================[![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