php-extended/php-api-com-aruljohn-object

A library that implements the php-extended/php-api-com-aruljohn-interface library

Maintainers

Package info

gitlab.com/php-extended/php-api-com-aruljohn-object

Issues

pkg:composer/php-extended/php-api-com-aruljohn-object

Statistics

Installs: 4 978

Dependents: 1

Suggesters: 0

Stars: 0


README

A php api wrapper around the aruljohn user agent string database.

coverage build status

Installation

The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.

  • Download composer.phar from their website.
  • Then run the following command to install this library as dependency :
  • php composer.phar php-extended/php-api-com-aruljohn-object ^9

Basic Usage

You may use this library the following way :


use PhpExtended\AruljohnComApi\ArulJohnComApiEndpoint;
use PhpExtended\Endpoint\HttpEndpoint;

/* @var $client \Psr\Http\Client\ClientInterface */

$endpoint = new ArulJohnComApiEndpoint(new HttpEndpoint($client));

$userAgents = $endpoint->getUserAgentIterator();
// returns \Iterator<string> the list of user agent values

License

MIT (See license file).