WURFL_Wrapper class in PHP
Beware This post is more than 3 years old, it may be outdated or incorrect! Please check elsewhere for accurate information!
I'm making a really cool new PHP Proxy interface and mobile browser based on Opera Mini's architecture and Squid proxy server called Hermes, and for the purposes of device detection I'm using WURFL.
WURFL is a Device Description Repository (DDR), i.e. a framework that enables applications to map HTTP requests to a description of the capability of the mobile device that requests the page.
The class isn't documented at all, but it's really simple so it doesn't need to. It was really useful to me (and still is) so I deciced to share it here.
Just locate the paths correctly, and it's going to work! It's not really that capable of doing detection by itself, and I went for speed of execution, as WURFL is slowing my application down enough, I don't need directory iterators making it grind to a halt (or pass max_execution_time).
This post was last updated on February 20th, 2020.