最佳开源WURFL替代方案 [英] Best Open Source WURFL alternative
问题描述
我正在寻找使用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.mobi , http://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屋!