Skip to content

Instantly share code, notes, and snippets.

@yuya-takeyama
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuya-takeyama/9055285 to your computer and use it in GitHub Desktop.
Save yuya-takeyama/9055285 to your computer and use it in GitHub Desktop.
test

in PHP (composer require woothee/woothee:*)

<?php
include __DIR__ . '/vendor/autoload.php';
$classifier = \Woothee\Classifier;
$classifier->parse('Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)');
// => ['name' => 'Internet Explorer', 'category' => 'pc', 'os' => 'Windows 7', 'version' => '8.0', 'vendor' => 'Microsoft']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment