百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

Mobile-Detect

> AI 编程
开源

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

10.7K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

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

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 Deprecated 3.* Detection\MobileDetect 3.x >=7.4,<8.0 LTS 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

  • Serban Ghita
  • All Contributors

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •the community :+1: for donations, submitting patches and issues
  • •Gitbook team for the open-source license for their technical documentation tool.
  • •Serban Ghita
  • •All Contributors

> 标签

PHPdevice-detectionmobile-detectmobile-redirectsphp

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类AI 编程
定价开源

> 相关工具

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.