Best Open Source WURFL alternative

Mike picture Mike · Mar 12, 2012 · Viewed 19.7k times · Source

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.

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

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.

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?

Answer

Andy picture Andy · Jun 23, 2012

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.