PHP code example of zhuchunshu / whichbrowser-parser
1. Go to this page and download the library: Download zhuchunshu/whichbrowser-parser library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zhuchunshu / whichbrowser-parser example snippets
$result = new WhichBrowser\Parser(getallheaders());
$result = new WhichBrowser\Parser($_SERVER['HTTP_USER_AGENT']);
"You are using " . $result->toString();
// You are using Chrome 27 on OS X Mountain Lion 10.8