用于识别访客的浏览器详细信息和设备类型, 可识别具体品牌(利用的正则匹配映射),识别信息比 jenssegers 更加全面
参考文档:https://github.com/hisorange/browser-detect
支持 Laravel 的 PHP 桌面/移动用户代理解析器,基于 Mobile Detect,具有桌面支持和附加功能。
参考文档: https://github.com/jenssegers/agent
使用 composer 安装:
下面是一段微信扫一扫下载 App 的链接的逻辑
View
[1]
Mobile Detect: https://github.com/serbanghita/Mobile-Detect