最佳开源 WURFL 替代方案 [英] Best Open Source WURFL alternative

查看:29
本文介绍了最佳开源 WURFL 替代方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在 PHP 中进行一些设备检测,并且正在研究一些选项.目前看起来最好的是 WURFL http://wurfl.sourceforge.net/.但我对它非常谨慎,因为它是非开源许可证.我还想知道它是否相关,因为文档网站看起来有点过时.

I am looking to do some device detection in PHP and I am looking into a few options. The one that looks the best right now is WURFL http://wurfl.sourceforge.net/. But I am very leery of it because of its non open source license. I am also wondering if it is even relevant because the documentation websites look kind of dated.

WURFL 等其他选项包括http://deviceatlas.com/http://51degrees.mobi/ 但这些都不是开源的.

Other options like WURFL include http://deviceatlas.com/ and http://51degrees.mobi/ but neither of these are even close to open source.

然后只有 PHP 的解决方案,如http://detectmobilebrowsers.mobihttp://code.google.com/p/php-mobile-detect/http://detectmobilebrowsers.com/> 但这些都使用了某种形式的正则表达式,看起来很难看.

Then there are the PHP only solutions like http://detectmobilebrowsers.mobi , http://code.google.com/p/php-mobile-detect/ and http://detectmobilebrowsers.com/ but these all use some form of regex that looks ugly.

对我来说,理想的解决方案是一个开源的 XML 文件或数据库,我可以将其存储在本地,并且可以根据需要进行更新.

The ideal solution for me would be an open source XML file or database that I can store locally, and that can be updated as needed.

我是在做梦吗?您更喜欢哪种解决方案来检测移动用户?

Am I dreaming? What solution do you prefer for detecting mobile users?

推荐答案

很抱歉恢复一个死帖,但有一个开源替代方案 - OpenDDR - 但我还找不到它的 PHP 库,因此您需要编写自己的解析和搜索例程.

Sorry to revive a dead post but there is an Open Source Alternative - OpenDDR - but I can't find PHP libraries for it yet so you will need to code your own parse and search routines.

这篇关于最佳开源 WURFL 替代方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆