Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

1. Installation

neilime edited this page Nov 6, 2016 · 1 revision

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',
        // ...
    ];
Clone this wiki locally