MobileDetectBundle
                                
                                
                                
                                    MobileDetectBundle copied to clipboard
                            
                            
                            
                        Abandoned in favor of `tattali/mobile-detect-bundle`
Hi everyone,
Given the lack of responsiveness of this bundle author, I decided to create and maintain a fork tattali/MobileDetectBundle.
The fork is available now and you will find instructions for using it in the README.
Of course, if you are ready to help, do not hesitate to contact me!
If you have any question, don't hesitate to ask! π
What have been done so far:
Highlights
- Full compatibility with Symfony 3.4 to 6
 - Rework 
README.mdto clarify the meaning of the bundle - Maintain test coverage to 94%
 - Create 
MobileDetectorInterfaceinterface ofMobile_Detectclass 
Full details
Documentation
- Rework 
README.mdto clarify the meaning of the bundle - Create a new logo with mobile detect and symfony bundle
 
CI
- Drop Travis CI support in favour of Github Actions Workflow
 - Linter / Formatter and Static Analysis: PHP-CS-Fixer, PHP_CodeSniffer, phpstan
 - Drop Coveralls support in favour of Codecov
 
Configuration
- Convert services to YAML files
 - Use class names as ids in services to respect new best practices and alias to old ids
 - Rename 
mobile_detect.cookie_httponlytomobile_detect.cookie_httpOnly - Drop 
mobile_detect.mobile_detector.class,mobile_detect.device_view.class,mobile_detect.request_response_listener.class,mobile_detect.twig.extension.class 
Improvements
- Create 
MobileDetectorInterfaceinterface ofMobile_Detectfully compatible withmobiledetect/mobiledetectlib>=2.8.15 - Create 
MobileDetectBundle\DeviceDetector\MobileDetectorInterfaceservice to quickly access the lib - Add an 
is_windows_osin the twig extension - Add an 
rules_listin the twig extension 
Drops
- Drop active support for Symfony <5.1 see Legacy version to use the bundle
 - Drop support for PHP <7.2.5
 - Drop support for 
mobiledetect/mobiledetectlib<2.8.15 - Drop support for Symfony 2.8 and <3.4 (non flex version)
 - Drop 
psr-0in favour ofpsr-4and rename namespace as neutralMobileDetectBundle\ 
Others
- Move the Main bundle to 
srcand tests totestsfolders - Add small Makefile
 - Enable active support of mobiledetect/mobiledetectlib >= 2.8.15
 - Clean php-doc with php8 compatible types and remove unnecessary documentation
 - Add native php typing where itβs possible
 - Rename 
cookieSamesitebycookieSameSitein whole project 
Planned work for next release:
- Continue the rework of the documentation
 - Test and document all the features of the bundle (redirection...)
 - Ensure the compatibility with Symfony6 and future version
 - Create a dedicated recipe
 - Review and integrate the pending issues and PR of the main repo to the fork
 - Create a edge version Compatible with PHP >=8.0, Symfony >=6.0 and MobileDetect php7.4
 
EDIT: Every features documented in the README are working at full capacity Do not hesitate to open an issue if you found a bug.
Enjoy! π π
@suncat2000 Would you consider to abandon the package suncat/mobile-detect-bundle in favor of tattali/mobile-detect-bundle on packagist please?
Don't hesitate to contact me if you want to discuss about this.
https://packagist.org/packages/suncat/mobile-detect-bundle
There is already continued package.. netbull/mobile-detect-bundle
Hi @netbull, Yeah I saw that you started a continued package, but I thought it was also inactive since it didn't work with Symfony 6.