1. Go to this page and download the library: Download woothee/woothee 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/ */
woothee / woothee example snippets
$classifier = new \Woothee\Classifier;
$r = $classifier->parse('user agent string');
$r['name'];
// => name of browser (or string like name of user-agent)
$r['category'];
// => "pc", "smartphone", "mobilephone", "appliance", "crawler", "misc", "unknown"
$r['os'];
// => os from user-agent, or carrier name of mobile phones
$r['version'];
// => version of browser, or terminal type name of mobile phones
$r['os_version'];
// => version of operating systems (for some typical cases)
$classifier->isCrawler($str); // boolean
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.