[I-mobile-u] Introducing the browser detection library ua-parser-php

Dave Olsen dmolsen at gmail.com
Mon Feb 13 11:52:32 EST 2012


In an effort to scratch an itch I had I've created a browser-detection
library that other schools might find useful. ua-parser-php[1] is a
PHP-based pseudo-port of the ua-parser project[2]. ua-parser-php is
designed to parse a user agent string and return certain properties
like browser name, OS version, and, in some cases, device name.
ua-parser-php utilizes the user agents regex YAML file from ua-parser
but otherwise uses its own set of properties to describe a browser,
OS, and device. All of the attributes are covered in the README. It's
a pretty simple library but hopefully it's useful to others. Please
feel free to fork and expand on it.

[1] - https://github.com/dmolsen/ua-parser-php
[2] - http://code.google.com/p/ua-parser/

-- 

http://dmolsen.com


More information about the I-mobile-u mailing list