PHP wrapper for the API.

Installs: 15

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

v0.2 2014-11-09 12:44 UTC


Gauges is a real-time website analytics service. This small library is designed to make consuming the Gauges API simple using PHP.


The recommended way to install this library is using Composer.

Install composer and update your project's composer.json file to include this library:

    "require": {
        "kevintweber/gauges": "~0.2"


Consuming the Gauges API with this library is super simple.

use Kevintweber\Gauges\Factory;

// Create the request object.
$request = Factory::createRequest($your_gauges_api_token);

// Optionally, attach a PSR-3 logger.

// Make an API call.
$response = $request->gauge_detail($gauge_id);

// Do something with the response.
$data = $response->json();

This library utilizes the Guzzle 5 library to make the API requests. To understand what else you can do with the response object, please refer to the Guzzle documentation.

If you want to get really fancy, you can access the HTTP client itself by calling:

$client = $request->getHttpClient();

// Do something with the client.


The client is documented in detail in the Guzzle documentation.


Kevin Weber -


kevintweber/gauges is licensed under the MIT License - see the LICENSE file for details