PHP code example of endorphin-studio / browser-detector

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

    

endorphin-studio / browser-detector example snippets


use EndorphinStudio\Detector\Detector;

$detector = new Detector();
$result = $detector->analyse();

echo json_encode($result);