PHP wrapper for the gaug.es API.
The recommended way to install this library is using Composer.
$ composer require kevintweber/gauges
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, set a PSR-3 logger. $request->setLogger($logger); // Make an API call. $response = $request->gauge_detail($gauge_id); // The response is a Psr7 response. $content = (string) $response->getContent(); $data = json_decode($content, true);
This library utilizes the Guzzle 6 library to make the API requests. To understand what else you can do with the response object, please refer to the Guzzle documentation.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email firstname.lastname@example.org instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.