php-extended/php-api-com-userstack-object

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

4.0.0 2022-05-31 08:52 UTC

This package is auto-updated.

Last update: 2022-07-31 00:25:22 UTC


README

A php API wrapper to connect to userstack.com API.

coverage build status

Installation

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-userstack-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\Endpoint\HttpEndpoint;
use PhpExtended\UserstackComApi\UserstackComApiEndpoint;

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

$endpoint = new UserstackComApiEndpoint(new HttpEndpoint($client), $apiKey);

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

License

MIT (See license file).