mobiledetect/mobiledetectlib 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mobiledetect/mobiledetectlib

最新稳定版本:4.8.09

Composer 安装命令:

composer require mobiledetect/mobiledetectlib

包简介

Mobile_Detect is a lightweight PHP class for detecting mobile devices. It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

README 文档

README

Mobile Detect

MobileDetect, PHP mobile detection class

Workflow status 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

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 5x \Mobile_Detect 2.8 >=5.0,<7.0 Deprecated
3.74.x 7x Detection\MobileDetect 3.74 >=7.4,<8.0 LTS
4.8.x 7x Detection\MobileDetect 4.8 >=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 ????. 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 community ???? for donations, submitting patches and issues
  • the JetBrains team for the open-source licenses for PHPStorm IDE
  • 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 serbanghita@gmail.com instead of using the issue tracker.

???? Credits

统计信息

  • 总下载量: 150.45M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10780
  • 点击次数: 1
  • 依赖项目数: 479
  • 推荐数: 13

GitHub 信息

  • Stars: 10680
  • Watchers: 577
  • Forks: 2643
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04