[go: nahoru, domu]

Skip to content

Library that helps reading stats from stathat

License

Notifications You must be signed in to change notification settings

Grummfy/stathat-read

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stathat read library

Build Status

Stathat is SaaS stat tracking tool. This small library is here to help read stats from it with PHP.

Usage

use Grummfy\StatHat;
use Grummfy\Stathat\HTTPAdapter\GuzzleAdapter;
use GuzzleHttp\Client;

$stathatToken = 'ABC123'; // get it from https://www.stathat.com/access

$adapter = new GuzzleAdapter($client);
$stathat = new Grummfy\StatHat($adapter, $stathatToken);
var_dump($stathat->listAllStats());

Install

composer require grummfy/stathat-read
composer require guzzlehttp/guzzle

By default, this library came with an implementation of the AdapterInterface made for Guzzle. If, for any reason, you don't want to use guzzle, just implements a new AdapterInterface.

Test

vendor/bin/atoum

About

Library that helps reading stats from stathat

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages