Skip to content

cloudinsight/cloudinsight-php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudinsight PHP SDK

Build Status Development Version

Installation

To install this package you will need:

  • PHP 5.5+
  • Enable sockets, mbstring

You must then modify your composer.json file and run composer update to include the latest version of the package in your project.

"require": {
   "cloudinsight/cloudinsight-sdk": "~0.0.1"
}

Or you can run the composer require command from your terminal.

$ composer require cloudinsight/cloudinsight-sdk

Quick Start Guide

Make sure your app require 'vendor/autoload.php'

use CloudInsight\Statsd;

$statsd = new Statsd;

//Increment a counter.
$statsd->increment('page.views');

//Record a gauge 100 of replies
$statsd->gauge('blogs.replies', 100);

//Record a gauge 50% of the time.
$statsd->gauge('users.online', 100, ['users.cloudinsight'], 0.5);

document see: http://docs-ci.oneapm.com/api/php.html