2017 © Pedro Peláez
 

yii2-extension yii2-mobile-detect

Yii2 component used to detect mobile devices

image

ezze/yii2-mobile-detect

Yii2 component used to detect mobile devices

  • Wednesday, April 8, 2015
  • by ezze
  • Repository
  • 2 Watchers
  • 1 Stars
  • 7,433 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 5 % Grown

The README.md

Mobile Detect extension for Yii2

This extension provides an Yii2 component wrapper for Mobile_Detect PHP class and can be used to detect whether a device is mobile one in your Yii2 application., (*1)

Installation

The preferred way to install this extension is through Composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist ezze/yii2-mobile-detect

or add, (*4)

"ezze/yii2-mobile-detect": "~0.1.0"

to the require section of your composer.json file., (*5)

Usage

  1. Add mobileDetect component to your Yii2 configuration like this:, (*6)

    'components' => [
        'mobileDetect' => [
            'class' => '\ezze\yii2\mobiledetect\MobileDetect'
        ]
    ]
    
  2. Use mobileDetect component as Mobile_Detect PHP class:, (*7)

    echo \Yii::$app->mobileDetect->isMobile();
    

The Versions

08/04 2015

dev-master

9999999-dev

Yii2 component used to detect mobile devices

  Sources   Download

The Requires

 

by Dmitriy Pushkov

08/04 2015

0.1.0

0.1.0.0

Yii2 component used to detect mobile devices

  Sources   Download

The Requires

 

by Dmitriy Pushkov

08/04 2015

dev-dev

dev-dev

Yii2 component used to detect mobile devices

  Sources   Download

The Requires

 

by Dmitriy Pushkov