Mobile Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.
There are three versions of MobileDetect.
4.8.x
is the main version that is ALWAYS going to be updated first.
Version | Tests | Namespace | Code | PHP Version | Status |
---|---|---|---|---|---|
2.8.x | \Mobile_Detect |
2.8 | >=5.0,<7.0 | Deprecated | |
3.74.x | Detection\MobileDetect |
3.74 | >=7.4,<8.0 | LTS | |
4.8.x | Detection\MobileDetect |
4.8 | >=8.0 | Current, Recommended |
If you are using Mobile Detect open-source package in your production apps, in presentation demos, hobby projects, school projects or so, you can sponsor my work by donating a small amount 👍. I'm currently paying for hosting and spend a lot of my family time to maintain the project and planning the future releases. I would highly appreciate any money donations.
Special thanks to:
The entire documentation is available on Gitbook: https://docs.mobiledetect.net
Point your device to: https://demo.mobiledetect.net
vendor/bin/phpunit -v -c tests/phpunit.xml --coverage-html .coverage
Please see the Contribute guide for details.
If you discover any security related issues, please email serbanghita@gmail.com instead of using the issue tracker.