mobiledetect/mobiledetectlib
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
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 👍.
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 👍 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 serbanghita@gmail.com instead of using the issue tracker.
🎉 Credits
统计信息
- 总下载量: 169.91M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10780
- 点击次数: 13
- 依赖项目数: 480
- 推荐数: 16
其他信息
- 授权协议: MIT
- 更新时间: 2012-11-20