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

4.0.0 2022-05-31 08:54 UTC

This package is auto-updated.

Last update: 2022-07-31 00:21:38 UTC


A php API wrapper to connect to API

coverage build status


The installation of this library is made via composer. Download composer.phar from their website. Then add to your composer.json :

	"require": {
		"php-extended/php-api-com-useragentstring-object": "^3",

Then run php composer.phar update to install this library. The autoloading of all classes of this library is made through composer's autoloader.

Basic Usage

You may use this library the following way :

use PhpExtended\UserAgentStringComApi\UserAgentStringComApiEndpoint;
use PhpExtended\Endpoint\HttpEndpoint;

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

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

$userAgent = $endpoint->getUserAgent('<put here your user agent string (raw ascii, not encoded)>');
// $userAgent is now a \PhpExtended\UserAgentStringComApi\UserAgentStringComApiUserAgent


MIT (See license file).