statful/statful-client-php

1.0.0-alpha1 2016-12-02 14:49 UTC

This package is not auto-updated.

Last update: 2024-09-29 00:40:28 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();