2017 © Pedro Peláez
 

yii2-extension yii2-mobile-detect

Yii2 mobile dectect component

image

ustmaestro/yii2-mobile-detect

Yii2 mobile dectect component

  • Sunday, April 5, 2015
  • by ustmaestro
  • Repository
  • 2 Watchers
  • 0 Stars
  • 385 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 93 % Grown

The README.md

MobileDetect Yii2 Extension

This Extension based on Mobile_Detect class writed by Serban Ghita and Victor Stanciu, (*1)

Install

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

Either run, (*3)

php composer.phar require --prefer-dist ustmaestro/yii2-mobile-detect "dev-master"

or add, (*4)

"ustmaestro/yii2-mobiledetect": "dev-master"

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

Add your component inside the config/web.php file eg:, (*6)

'components' => [
    ...

    'mobileDetect' => [
        'class' => 'ustmaestro\mobiledetect\MobileDetect'
    ],

    ...
];

Usage

  $detect = Yii::$app->mobileDetect;
  // call methods
  $detect->isMobile();
  $detect->isTablet();
  $detect->isIphone();
  ...

The Versions

05/04 2015

dev-master

9999999-dev

Yii2 mobile dectect component

  Sources   Download

BSD-4-Clause

The Requires

 

by Avatar ustmaestro

extension yii2 yii2-mobile-detect

05/04 2015

1.0.0

1.0.0.0

Yii2 mobile dectect component

  Sources   Download

BSD-4-Clause

The Requires

 

by Avatar ustmaestro

extension yii2 yii2-mobile-detect