bjankord/Categorizr — pull request #1 by H-Max (2012-03-12 14:22:28+00:00)
Title: Static class cls.Categorizr made out of original code

Made a static class from your code into a rather simple static php class.

Usage described in the comments, copy here :

Just include this class in your php file and use

CATEGORIZR::getDeviceCategory()
to read userAgent and grab the deviceCategory in :
CATEGORIZR::$userAgent
CATEGORIZR::$deviceCategory

Use CATEGORIZR::$useSession = true; before calling getDeviceCategory if you want to use session storage directly in the class (rather than using you own session handler)