Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/statful/statful-client-php
https://github.com/statful/statful-client-php
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/statful/statful-client-php
- Owner: statful
- Created: 2016-11-30T16:29:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-02T14:56:21.000Z (almost 8 years ago)
- Last Synced: 2024-04-09T15:02:20.231Z (7 months ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# statful-client-php
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();```