php-extended/php-userstack-com-api

This package is abandoned and no longer maintained. The author suggests using the php-extended/php-api-com-userstack-object package instead.

A php API wrapper to connect to userstack.com API

3.1.8 2021-01-31 22:25 UTC

This package is auto-updated.

Last update: 2022-05-14 17:06:12 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-userstack-com-api": "^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\UserAgent\UserstackComApiEndpoint;

/* @var $client \Psr\Http\Client\ClientInterface */
/* @var $uriFactory \Psr\Http\Message\UriFactory */
/* @var $requestFactory \Psr\Http\Message\RequestFactory */
/* @var $apiKey string */

$endpoint = new UserstackComApiEndpoint($client, $uriFactory, $requestFactory, $apiKey);

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

License

MIT (See license file).