1. Installation - neilime/zf2-mobile-detect GitHub Wiki

Main Setup

With composer

  1. Add this project in your composer.json:

    "require": {
        "neilime/zf2-mobile-detect": "2.*.*"
    }
    
  2. Now tell composer to download ZF Mobile-Detect by running the command:

    $ php composer.phar update
    

By cloning project

  1. Install Mobile-Detect by cloning it into ./vendor/.
  2. Clone this project into your ./vendor/ directory.

Post installation

  1. Enabling it in your config/modules.config.phpfile.

    <?php
    return [
        // ...
        'Neilime\MobileDetect',
        // ...
    ];