Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best Open Source WURFL alternative [closed]

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?

like image 710
Mike Avatar asked Mar 12 '12 19:03

Mike


2 Answers

Any reason not to use the ua-parser project?

The PHP client is here: https://github.com/tobie/ua-parser/tree/master/php

like image 160
Alex Dean Avatar answered Nov 02 '22 17:11

Alex Dean


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.

like image 4
Andy Avatar answered Nov 02 '22 16:11

Andy