1. Go to this page and download the library: Download nodes/browscap 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/ */
nodes / browscap example snippets
use BrowscapPHP\Browscap;
$browscap = new Browscap();
$info = $browscap->getBrowser();
// The Browscap class is in the BrowscapPHP namespace, so import it
use BrowscapPHP\Browscap;
// Create a new Browscap object (loads or creates the cache)
$bc = new Browscap();
// Get information about the current browser's user agent
$current_browser = $bc->getBrowser();