spotman / kohana-device

Kohana 3.3 mobile device detection

Home Page:https://github.com/badsyntax/kohana-device

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kohana-device

A kohana 3.3 module that provides device detection. It's simply a wrapper around the Mobile_Detect class.

Installation

  1. Add the kohana-device module as a submodule to your /module directory
  2. Update the submodules within the kohana-device module: git submodule update --init
  3. Enabled the module in your bootstrap.php file

Usage

Instantiate the class and detect mobile:

$device = new Device();

if ($device->is_mobile()) 
{
  // Any mobile device.
}

About

Kohana 3.3 mobile device detection

https://github.com/badsyntax/kohana-device


Languages

Language:PHP 100.0%