2017 © Pedro PelĂĄez
 

library useragent-classify

A library to work with UserAgent detection and classification

image

bee4/useragent-classify

A library to work with UserAgent detection and classification

  • Friday, August 7, 2015
  • by shulard
  • Repository
  • 2 Watchers
  • 0 Stars
  • 213 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

bee4/useragent-classifier

Build Status Scrutinizer Code Quality Code Coverage SensiolabInsight, (*1)

License, (*2)

This library allow to track and detect who is behind useragents :), (*3)

Installing

Latest Stable Version Total Downloads, (*4)

This project can be installed using Composer. Add the following to your composer.json:, (*5)

{
    "require": {
        "bee4/useragent-classifier": "~1.0"
    }
}

or run this command:, (*6)

composer require bee4/useragent-classifier:~1.0

Usage

This library is composed of a Detector object and different Bots implementation., (*7)

```php use Bee4\UserAgent\Classifier\Detector;, (*8)

$ua = 'Mozilla/5.0 (compatible; Mail.RU/2.0)'; $bot = Detector::whoIs($ua); //$bot is a Bots\MailRU instance, (*9)

$bot->getBot(); //Here we get mailru $bot->getName(); //Here we get mailru-bot, (*10)

$ua = 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'; $bot = Detector::whoIs($ua); //$bot is a Bots\Google instance, (*11)

$bot->getBot(); //Here we get google $bot->getName(); //Here we get google-bot, (*12)

The Versions

07/08 2015

dev-develop

dev-develop

A library to work with UserAgent detection and classification

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4
  • ext-pcre *

 

by Stéphane HULARD

12/01 2015

dev-master

9999999-dev

A library to work with UserAgent detection and classification

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4
  • ext-pcre *

 

The Development Requires

by Stéphane HULARD

12/01 2015

v1.0.0

1.0.0.0

A library to work with UserAgent detection and classification

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4
  • ext-pcre *

 

The Development Requires

by Stéphane HULARD

12/01 2015

v0.0.0

0.0.0.0

A library to work with UserAgent detection and classification

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4
  • ext-pcre *

 

The Development Requires

by Stéphane HULARD