GaretJax / phpbrowscap

Standalone replacement for php's native get_browser() function
MIT License
429 stars 69 forks source link

Implement "standard", "full" etc. simple selection #46

Open vlakoff opened 10 years ago

vlakoff commented 10 years ago

Hello,

Currently to select the "standard", "full" etc. version, one has to enter the full file url. It is not the most convenient, and as we are seeing the URLs are subject to change.

I suggest adding a setting that would allow to do so:

$bc = new Browscap();
$bc->version = 'lite';

Details:

Your opinion on this? Regards

asgrim commented 10 years ago

If it's any consolation, the URLs shouldn't change from the new browscap.org URLs, and if they do at least I now have the power to create redirects whilst migrations can happen! :)