statful / statful-client-php
Statful PHP client
1.0.0-alpha1
2016-12-02 14:49 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-11-10 01:24:08 UTC
README
PHP Client for Statful
How to use
#!php
$metricNamespace = 'business';
$metricName = 'wager';
$metricTags = array(
'transaction' => 'create',
'platform' => 'desktop',
'action' => 'bet',
);
$metricValue = 100;
$client = new StatfulClient('127.0.0.1', '2014', 'business', 'production');
$client->put($metricName, $metricValue, $metricTags, $metricNamespace);
$client->send();