Download the PHP package bee4/useragent-classify without Composer
On this page you can find all versions of the php package bee4/useragent-classify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bee4/useragent-classify
More information about bee4/useragent-classify
Files in bee4/useragent-classify
Download bee4/useragent-classify
More information about bee4/useragent-classify
Files in bee4/useragent-classify
Vendor bee4
Package useragent-classify
Short Description A library to work with UserAgent detection and classification
License Apache-2.0
Package useragent-classify
Short Description A library to work with UserAgent detection and classification
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package useragent-classify
bee4/useragent-classifier
This library allow to track and detect who is behind useragents :)
Installing
This project can be installed using Composer. Add the following to your composer.json:
or run this command:
Usage
This library is composed of a Detector
object and different Bots
implementation.
use Bee4\UserAgent\Classifier\Detector;
$ua = 'Mozilla/5.0 (compatible; Mail.RU/2.0)';
$bot = Detector::whoIs($ua); //$bot is a Bots\MailRU instance
$bot->getBot(); //Here we get `mailru`
$bot->getName(); //Here we get `mailru-bot`
$ua = 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)';
$bot = Detector::whoIs($ua); //$bot is a Bots\Google instance
$bot->getBot(); //Here we get `google`
$bot->getName(); //Here we get `google-bot`
All versions of useragent-classify with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
ext-pcre Version *
ext-pcre Version *
The package bee4/useragent-classify contains the following files
Loading the files please wait ....