I found some ways to do that:
- https://github.com/rainphp/useragent
- https://github.com/serbanghita/Mobile-Detect (http://mobiledetect.net)
- https://github.com/garetjax/phpbrowscap
Or by PHP class
You can find a lot of snippets online, like this
Question
Is there a recommended way to perform a mobile or browser check/detection with zf2? I am surprised there seems to be no module developed to handle this...
La solution
I found some ways to do that:
Or by PHP class
You can find a lot of snippets online, like this
Autres conseils
Please take a look at neilime/ZF2 Mobile-Detect module and another one nikolaposa/MobileDetectModule, both provides serbanghita/Mobile-Detect features.