A kohana 3.3 module that provides device detection. It's simply a wrapper around the Mobile_Detect class.
- Add the kohana-device module as a submodule to your
/module
directory - Update the submodules within the kohana-device module:
git submodule update --init
- Enabled the module in your bootstrap.php file
Instantiate the class and detect mobile:
$device = new Device();
if ($device->is_mobile())
{
// Any mobile device.
}