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...
Asked
Active
Viewed 1,498 times
2 Answers
2
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

Remi Thomas
- 1,528
- 1
- 15
- 25
-
1Mobile-Detect worked for me. There are quite a number of plugins available for various frameworks. – KalenGi Jun 26 '15 at 06:23
0
Please take a look at neilime/ZF2 Mobile-Detect module and another one nikolaposa/MobileDetectModule, both provides serbanghita/Mobile-Detect features.

webcoder
- 1,355
- 1
- 15
- 14