https://github.com/badsyntax/kohana-device
Kohana 3.3 mobile device detection
https://github.com/badsyntax/kohana-device
Last synced: 11 months ago
JSON representation
Kohana 3.3 mobile device detection
- Host: GitHub
- URL: https://github.com/badsyntax/kohana-device
- Owner: badsyntax
- Created: 2012-12-13T19:40:18.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-10-15T10:33:44.000Z (over 12 years ago)
- Last Synced: 2025-03-17T14:22:05.812Z (11 months ago)
- Language: PHP
- Homepage: https://github.com/badsyntax/kohana-device
- Size: 120 KB
- Stars: 7
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
kohana-device
=============
A kohana 3.3 module that provides device detection.
It's simply a wrapper around the [Mobile_Detect](https://github.com/serbanghita/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`
2. Enabled the module in your bootstrap.php file
### Usage
Instantiate the class and detect mobile:
```php
$device = new Device();
if ($device->is_mobile())
{
// Any mobile device.
}
```