PHP code example of jdecano / x-parser

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

    

jdecano / x-parser example snippets



_agent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36";
use Jdecano\XParser;
//////// Lets GO!!!
$parser = new XParser($user_agent);
echo '<pre>';
print_r($parser->engine());