PHP code example of extead / ua-parser-php
1. Go to this page and download the library: Download extead/ua-parser-php 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/ */
extead / ua-parser-php example snippets
composer
$parser = new \Extead\UAParser\UAParser();
$parser->setUa("Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10");
$parser->getResult();