eblanshey/browser-detect

This package is abandoned and no longer maintained. No replacement package was suggested.

Browser & Mobile detection package for Laravel 4.

1.0.4 2014-05-01 21:49 UTC

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);