Search code examples
zend-framework2detectionbrowser-detectionmobile-devices

what is the best way to add mobile (or tablet...) detection within zf2?


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...


Solution

  • I found some ways to do that:

    Or by PHP class

    You can find a lot of snippets online, like this