serbanghita/Mobile-Detect
serbanghita/Mobile-Detect has 10,676 GitHub stars and 2,591 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 18:58 UTC. Last push 2026-11-04.
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.
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
MobileDetect, PHP mobile detection class
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.
Before you install
MobileDetect is maintained on one rolling branch per major line. Tags follow the pattern <major>.<minor>.<patch> and always live on the matching branch.
| Version | Tests | Namespace | Branch | PHP Version | Purpose |
|---|---|---|---|---|---|
| 2.* | \Mobile_Detect |
2.x |
>=5.6,<7.0 | End of life | |
| 3.* | Detection\MobileDetect |
3.x |
>=7.4,<8.0 | End of life | |
| 4.* | Detection\MobileDetect |
4.x |
>=8.2 (since 4.10.0, previously >=8.0) | Current, Recommended |
🤝 Supporting
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 :+1:.
I'm currently paying for domains, 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 community :+1: for donations, submitting patches and issues
- Gitbook team for the open-source license for their technical documentation tool.
📃 Documentation
The entire documentation is available on Gitbook: https://docs.mobiledetect.net
👾 Demo
Point your device to: https://demo.mobiledetect.net
🐛 Testing
vendor/bin/phpunit -v -c tests/phpunit.xml --coverage-html .coverage
🤝 Contributing
Please see the Contribute guide for details.
🔒 Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
🎉 Credits
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,799 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,405 starsreact/react
The library for web and native user interfaces.
252,435 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,624 stars