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