eblanshey / browser-detect
Browser & Mobile detection package for Laravel 4.
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 134
pkg:composer/eblanshey/browser-detect
Requires
- php: >=5.4.0
- garetjax/phpbrowscap: 2.*
- hisorange/traits: 1.*
- laravel/framework: 4.*
- mobiledetect/mobiledetectlib: 2.*
This package is not auto-updated.
Last update: 2023-08-15 02:32:50 UTC
README
This is the same package as the hisorange/browser-detect package, but stripped from the Laravel requirement. Only the runtime cache is used. All credit goes to hisorange for this package. More information here: https://github.com/hisorange/browser-detect
Basic usage:
use hisorange\BrowserDetect\Parser; $parser = new Parser; $info = $parser->detect();
If you want to change the default configs, pass the config array as the first parameter to the Parser class, and the plugin array as the second parameter:
$parser = new Parser($config, $plugins);