netbull / mobile-detect-bundle
Symfony 4/5/6 bundle for detect mobile devices, managing mobile view types, redirect to mobile version.
Installs: 101 951
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 155
Type:symfony-bundle
Requires
- php: >=8.0.2
- mobiledetect/mobiledetectlib: ^2.8.37
- symfony/framework-bundle: ^4.4.31|^5.3|^6.0|^7.0
- symfony/http-foundation: ^4.4.31 || ^5.3 || ^6.0 || ^7.0
- symfony/http-kernel: ^4.4.31 || ^5.3 || ^6.0 || ^7.0
- symfony/yaml: ^4.4.31 || ^5.3 || ^6.0 || ^7.0
- twig/twig: ^3.3
Requires (Dev)
- phpunit/phpunit: ^9.5
- symfony/phpunit-bridge: ^4.4.31|^5.3|^6.0|^7.0
This package is auto-updated.
Last update: 2025-05-23 06:59:28 UTC
README
MobileDetectBundle
Symfony 4/5/6 bundle for detect mobile devices, manage mobile view and redirect to the mobile and tablet version.
Introduction
This Bundle use Mobile_Detect class and provides the following features:
- Detect the various mobile devices by Name, OS, browser User-Agent
- Manages site views for the various mobile devices (
mobile
,tablet
,full
) - Redirects to mobile and tablet sites
Installation
-
Install the latest version via composer:
composer require netbull/mobile-detect-bundle --dev
-
If you don't use Symfony Flex, you must enable the bundle manually in the application:
// config/bundles.php // in older Symfony apps, enable the bundle in app/AppKernel.php return [ // ... SunCat\MobileDetectBundle\MobileDetectBundle::class => ['dev' => true], ];
Documentation
The bulk of the documentation is stored in the Resources/doc/index.md
file in this bundle:
Read the Documentation for master
License
This bundle is under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE