Download the PHP package holmes/holmes without Composer
On this page you can find all versions of the php package holmes/holmes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download holmes/holmes
More information about holmes/holmes
Files in holmes/holmes
Download holmes/holmes
More information about holmes/holmes
Files in holmes/holmes
Please rate this library. Is it a good library?
Informations about the package holmes
Holmes (version 2.0)
wat?
Holmes is an easy to use mobile detection library based on php-mobile-detect
Requirements
- PHP 5.3+
Usage
// Determine if request is from a mobile device
Holmes\Holmes::isMobile(); // returns boolean
// Determine the type of device
$device = Holmes\Holmes::getDevice(); // returns string (or default)
// Holmes\Holmes::getDevice() will throw a DeviceNotDetectedException exception if no default is passed
// and could not detect a mobile device. Passing a default will return the default in lieu of an
// exception
// Determine if a specific device is being used
// Any supported device below is acceptable
Holmes\Holmes::isIpad();
Holmes\Holmes::isBlackberrytablet();
// Modern (Android/iPad) tablet
Holmes\Holmes::isTablet();
Supported Device Types
- Android
- Android Tablet
- BlackBerry
- BlackBerry Tablet
- iPhone
- iPad
- iOS (any iOS device)
- Nintendo DS/DSi
- Palm
- Windows
- Windows Phone
- More generic text-only devices
All versions of holmes with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.3
The package holmes/holmes contains the following files
Loading the files please wait ....