PHP code example of ikimea / browser

1. Go to this page and download the library: Download ikimea/browser 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/ */

    

ikimea / browser example snippets




use Ikimea\Browser\Browser;

$browser = new Browser();
if( $browser->getBrowser() == Browser::BROWSER_FIREFOX && $browser->getVersion() >= 2 ) {
   	echo 'You have FireFox version 2 or greater';
}

bash
$ php composer.phar update ikimea/browser