WURFL_Wrapper class in PHP

Comments 0

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).

0
❤️
0
👍
0
😲
0
😢
0
😠
0

Comments (0)

Please be civil when commenting. Think before writing, don't spam, self promote, bully, harass or harm anyone. Please read the Comment Policy before posting. Comments are moderated.

There are no comments.
Be the first to contribute!


Scroll to top