085.x-dev
085.9999999.9999999.9999999-dev http://detector.dmolsen.com/Combined browser- & feature-detection for your app
MIT
The Requires
by Dave Olsen
feature detection detector useragent device user-agent ua-parser-php yabfdl
Wallogit.com
2017 © Pedro Peláez
Combined browser- & feature-detection for your app
Detector is a simple, PHP- and JavaScript-based browser- and feature-detection library that can adapt to new devices & browsers on its own without the need to pull from a central database of browser information., (*1)
Detector dynamically creates profiles using a browser's (mainly) unique user-agent string as a key. Using Modernizr it records the HTML5 & CSS3 features a requesting browser may or may not support. ua-parser-php is used to collect and record any useful information (like OS or device name) the user-agent string may contain., (*2)
With Detector a developer can serve the appropriate markup, stylesheets, and JavaScript to a requesting browser without being completely dependent on a front-end-only resource loader nor a browser-detection library being up-to-date., (*3)
The server-side portion of Detector is based upon modernizr-server by James Pearce (@jamespearce) and the browser-detection library ua-parser-php. Detector utilizes Modernizr for its client-side, feature-detection support., (*4)
A very simple demo of Detector is available for testing. It's also now in production on the West Virginia University home page., (*5)
The following features are as of v0.8.5 of Detector:, (*6)
First and foremost, thanks to James Pearce (@jamespearce) for putting together modernizr-server and giving me a great base to work from. I also took some of the copy from his README and used it in the section, "Adding Detector to Your Application." Also, thanks to the guys behind Modernizr for giving developers a great lib as well as the the ability to expand Modernizr via Modernizr.addTest(). Finally, thanks to Bryan Rieger (@bryanrieger) & Stephanie Rieger (@stephanierieger) of Yiibu and Luke Wroblewski (@lukew) for providing inspiration via Profile and RESS respectively., (*7)
Combined browser- & feature-detection for your app
MIT
feature detection detector useragent device user-agent ua-parser-php yabfdl