MobileDetect PHP
Github4.8.x3.74.x2.8.xDemo
  • Introduction
  • Install
  • How to use (composer)
  • How to use (standalone)
  • The constructor
  • Example
  • Other versions
  • Demo
  • Performance
  • Contribute
  • Developing code
  • Project structure
  • Extending / Porting
  • Add new module, plugin or port
  • Plugins, Modules and Ports
  • Credits
Powered by GitBook
On this page
  • 2.x
  • 3.x

Was this helpful?

Edit on GitHub

Other versions

Learn how to install the versions for older PHP versions

2.x

require_once("/path/to/package/Mobile_Detect.php");

$detect = new Mobile_Detect();
$detect->isMobile();
$detect->isTablet();

3.x

require_once "/path/to/package/src/MobileDetect.php"

$detect = new \Detection\MobileDetect;
$detect->isMobile();
$detect->isTablet();
PreviousExampleNextDemo

Last updated 5 months ago

Was this helpful?