2017 © Pedro Peláez
 

library woothee

Cross-language UserAgent classifier library, PHP implementation

image

woothee/woothee

Cross-language UserAgent classifier library, PHP implementation

  • Sunday, April 30, 2017
  • by yuya-takeyama
  • Repository
  • 11 Watchers
  • 104 Stars
  • 112,768 Installations
  • PHP
  • 4 Dependents
  • 1 Suggesters
  • 11 Forks
  • 1 Open issues
  • 15 Versions
  • 10 % Grown

The README.md

Woothee PHP

Build Status Coverage Status Packagist, (*1)

The PHP implementation of Project Woothee, which is multi-language user-agent strings parsers., (*2)

https://github.com/woothee/woothee, (*3)

This project is almost ported from woothee-java, (*4)

Installation

Install this library using Composer., (*5)

Run below command in your project directory., (*6)

$ composer require woothee/woothee

Or add this library in your composer.json's require section manually., (*7)

{
  "require": {
    "woothee/woothee": "*"
  }
}

Usage

Parsing user-agent

<?php
$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)

Parse user-agent string and returns a array with keys name, category, os, version and vendor., (*8)

The details is same as woothee-java, (*9)

Finding crawlers (almost all, not all) in fast

<?php
$classifier->isCrawler($str); // boolean

Authors

License

Copyright 2014- Yuya Takeyama (@yuya-takeyama), (*10)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at, (*11)

http://www.apache.org/licenses/LICENSE-2.0, (*12)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License., (*13)

The Versions

30/04 2017

dev-master

9999999-dev

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache-2.0

The Requires

  • php >= 5.3.3

 

The Development Requires

user agent useragent

30/04 2017

v1.7.0

1.7.0.0

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache-2.0

The Requires

  • php >= 5.3.3

 

The Development Requires

user agent useragent

10/02 2017

v1.6.0

1.6.0.0

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache-2.0

The Requires

  • php >= 5.3.3

 

The Development Requires

user agent useragent

03/01 2017

dev-add-travis-php71

dev-add-travis-php71

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache-2.0

The Requires

  • php >= 5.3.3

 

The Development Requires

user agent useragent

21/08 2016

v1.5.0

1.5.0.0

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache-2.0

The Requires

  • php >= 5.3.3

 

The Development Requires

user agent useragent

17/05 2016

v1.4.0

1.4.0.0

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache-2.0

The Requires

  • php >= 5.3.3

 

The Development Requires

user agent useragent

13/08 2015

v1.2.0

1.2.0.0

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache-2.0

The Requires

  • php >= 5.3.3

 

The Development Requires

user agent useragent

01/03 2015

v1.1.0

1.1.0.0

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache-2.0

The Requires

  • php >= 5.3.3

 

The Development Requires

user agent useragent

14/01 2015

v1.0.1

1.0.1.0

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache-2.0

The Requires

  • php >= 5.3.3

 

The Development Requires

user agent useragent

26/10 2014

v1.0.0

1.0.0.0

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache-2.0

The Requires

  • php >= 5.3.3

 

The Development Requires

user agent useragent

12/07 2014

v0.4.2

0.4.2.0

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache-2.0

The Requires

  • php >= 5.3.3

 

The Development Requires

user agent useragent

25/04 2014

v0.4.1

0.4.1.0

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache-2.0

The Requires

  • php >= 5.3.3

 

The Development Requires

user agent useragent

06/04 2014

v0.4.0

0.4.0.0

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache-2.0

The Requires

  • php >= 5.3.3

 

The Development Requires

user agent useragent

17/02 2014

v0.3.8

0.3.8.0

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache-2.0

The Requires

  • php >= 5.3.3

 

The Development Requires

user agent useragent

16/02 2014

v0.0.1

0.0.1.0

Cross-language UserAgent classifier library, PHP implementation

  Sources   Download

Apache License 2.0

The Development Requires