1. Installation - neilime/zf2-mobile-detect GitHub Wiki
Main Setup
With composer
-
Add this project in your composer.json:
"require": { "neilime/zf2-mobile-detect": "2.*.*" }
-
Now tell composer to download ZF Mobile-Detect by running the command:
$ php composer.phar update
By cloning project
- Install Mobile-Detect by cloning it into
./vendor/
. - Clone this project into your
./vendor/
directory.
Post installation
-
Enabling it in your
config/modules.config.php
file.<?php return [ // ... 'Neilime\MobileDetect', // ... ];