Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Symfony
  3. MobileDetectBundle

MobileDetectBundle

PHP

Symfony bundle for mobile device detection, view management, and redirects to mobile/tablet versions.

GitHubGitHub
393 stars155 forks0 contributors

What is MobileDetectBundle?

MobileDetectBundle is a Symfony bundle that provides mobile device detection and view management capabilities for Symfony applications. It uses the Mobile_Detect library to identify devices and allows developers to serve different views or redirect users to mobile or tablet versions of their site.

Target Audience

Symfony developers building responsive web applications that require device-specific rendering or redirection logic.

Value Proposition

It offers a Symfony-native integration of robust device detection, simplifying the implementation of mobile-aware features without reinventing the wheel.

Overview

Symfony 2/3/4 bundle for detect mobile devices, manage mobile view and redirect to the mobile and tablet version.

Use Cases

Best For

  • Building Symfony applications with separate mobile and desktop views
  • Implementing automatic redirects to mobile-optimized sites
  • Detecting tablet devices to serve tailored layouts
  • Managing user-agent based device detection in Symfony projects
  • Integrating Mobile_Detect library into Symfony services
  • Creating device-specific routing or controller logic

Not Ideal For

  • Projects using Symfony versions beyond 4.0.x, as the README specifies limited support up to Symfony 4.0
  • Applications that rely entirely on client-side responsive design with CSS media queries, avoiding server-side detection
  • Teams needing real-time device capability detection (e.g., screen size, touch support) rather than user-agent sniffing
  • High-traffic sites where server-side device detection on every request could introduce performance overhead

Pros & Cons

Pros

Robust Device Detection

Integrates the established Mobile_Detect library, providing reliable identification of mobile and tablet devices by user-agent, as highlighted in the README's feature list.

Symfony Native Integration

Wraps device detection into Symfony services, making it seamless to implement view management and redirection within the framework, per the philosophy described.

Comprehensive Feature Set

Offers device detection, view management for mobile, tablet, and full layouts, and site redirection, all bundled together for Symfony applications.

Well-Documented and Tested

Includes extensive documentation in Resources/doc and shows good test coverage with Travis CI and Coveralls badges, ensuring reliability.

Cons

Limited Symfony Version Support

The README specifies support only for Symfony 2.4.x-4.0.x, which may not be compatible with newer Symfony versions, limiting adoption in modern projects.

Reliance on User-Agent Detection

Uses user-agent sniffing via Mobile_Detect, which can be inaccurate and less reliable than modern responsive techniques or client-side detection methods.

Potential Performance Overhead

Server-side device detection on every request can add processing time, especially for high-traffic sites, compared to lightweight client-side solutions.

Frequently Asked Questions

Quick Stats

Stars393
Forks155
Contributors0
Open Issues20
Last commit3 years ago
CreatedSince 2012

Tags

#user-agent-parsing#tablet-detection#symfony-bundle#mobile-first#php#responsive-design#mobile-detection

Built With

P
PHP
S
Symfony

Included in

Symfony1.6k
Auto-fetched 16 hours ago

Related Projects

LiipImagineBundleLiipImagineBundle

Symfony Bundle to assist in image manipulation using the imagine library

Stars1,709
Forks384
Last commit4 months ago
KnpSnappyBundleKnpSnappyBundle

Easily create PDF and images in Symfony by converting html using webkit

Stars1,246
Forks142
Last commit6 months ago
OneupUploaderBundleOneupUploaderBundle

This Symfony bundle provides a server implementation for handling single and multiple file uploads using either FineUploader, jQuery File Uploader, YUI3 Uploader, Uploadify, FancyUpload, MooUpload, Plupload or Dropzone. Features include chunked uploads, orphanages, Gaufrette and Flysystem support.

Stars606
Forks173
Last commit5 months ago
APYDataGridBundleAPYDataGridBundle

Symfony Datagrid Bundle

Stars492
Forks338
Last commit1 month ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub