Make the user agent lookup a pluggable system so that site admins can use other databases

comrax - June 8, 2009 - 15:13
Project:Browscap
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello there.

I ran into your module a while ago, and I think you're able to make it much better using DB "drivers". What I mean is that instead of building the API around one source of data, in this case the browscap.ini file, a better approach would be to write the core, and have hooks to install DB drivers that fetch the data, and interact with base API calls.

One great source of mobile data is actually commercial, and called DeviceAtlas (http://www.deviceatlas.com). The data is ever changing and many companies use it for correctly sniffing many great details about the client. DeviceAtlas even provides a ready-made PHP class to get the relevant data from their data files.

If you want, please send me a message privately (browscap AT orientalsensation DOT com) and I will split the current code into a functional API, plus write the current driver + DeviceAtlas driver.

Thanks.

#1

greggles - September 16, 2009 - 22:51

This seems fairly reasonable to me. Drupal in general aims to be flexible in what it does.

#2

greggles - September 16, 2009 - 22:55
Title:Browsecap drivers» Make the user agent lookup a pluggable system so that site admins can use other databases

Better title.

 
 

Drupal is a registered trademark of Dries Buytaert.