Skip to content
项目

serbanghita/Mobile-Detect has 10,678 GitHub stars and 2,588 forks. GitHot measured -1 stars in 24 hours, +1 in 7 days, and +2 in 15 days. Last checked 2026-11-24 21:13 UTC. Last push 2026-11-04.

这些数字如何统计

实测星标增长

24小时
-1
7天
+1
15天
+2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

关于

Mobile_Detect 是一个轻量级 PHP 类,用于检测移动设备(包括平板电脑)。它结合 User-Agent 字符串和特定的 HTTP 标头来检测移动环境。

网站与应用

README.md

原文

Mobile Detect

MobileDetect, PHP mobile detection class

Build status Latest stable version Latest tag Monthly Downloads Total Downloads MIT License

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.* 2.x tests \Mobile_Detect 2.x >=5.6,<7.0 End of life
3.* 3.x tests Detection\MobileDetect 3.x >=7.4,<8.0 End of life
4.* 4.x tests 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

探索相关项目

加载中…