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

5.0.0 2022-12-18 15:13 UTC

This package is auto-updated.

Last update: 2023-05-18 16:14:39 UTC


A php API wrapper to connect to API

coverage build status


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-useragentstring-object": "^5"

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).