8000 GitHub - udger/udger-php at v1.3.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

udger/udger-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Udger client for PHP

Local parser is very fast and accurate useragent string detection solution. Enables developers to locally install and integrate a highly-scalable product. We provide the detection of the devices (personal computer, tablet, Smart TV, Game console etc.), operating system and client SW type (browser, e-mail client etc.).

Requirements

PHP 5.3 or later.

Features

  • Fast
  • Standalone
  • Auto updated datafile and cache from remote server with version checking and checksum datafile
  • Released under the GNU (LGPL v.3)

Usage

You should review the included examples (parse.php, isbot.php, account.php or full_example.php) Here's a quick example:

require_once __DIR__ . '/vendor/autoload.php';
$parser = new Udger\Parser();
$parser->SetDataDir(sys_get_temp_dir() . "/udgercache/");
$parser->SetAccessKey('XXXXXX');
$ret = $parser->parse('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36');
echo "<pre>";
print_r($ret);
echo "</pre>";

Author

The Udger.com Team (info@udger.com)

0