2017 © Pedro Peláez
 

library hoard

Hoard client library for PHP

image

marcqualie/hoard

Hoard client library for PHP

  • Tuesday, August 13, 2013
  • by marcqualie
  • Repository
  • 1 Watchers
  • 2 Stars
  • 841 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Hoard PHP Client

Total Downloads Latest Stable Version, (*1)

This is the client library to track events and get information back from a Hoard server, (*2)

Installation

Via Composer

Put this code in your composer.json file, (*3)

``` php { "require": { "marcqualie/hoard": "dev-master" } }, (*4)



## Usage ``` php $hoard = new Hoard\Client(array( 'server' => 'http://username.hoardhq.com'; 'apikey' => 'XXX' )); $hoard->setDriver(new Hoard\Driver\GearmanDriver()); $bucket = $hoard->getBucket('analytics'); $response = $bucket->track('pageview', array( 'uri' => '/' )); echo 'Tracking ID: ' . $response->id;

Silex Service Provider

``` php $app->register(new Silex\Provider\HoardServiceProvider(), array( 'hoard.server' => 'http://username.hoardhq.com', 'hoard.apikey' => 'XXX' )); $bucket = $app['hoard']->getBucket('analytics'); $response = $bucket->track('pageview', array( 'uri' => '/' )); echo 'Tracking ID: ' . $response->id;, (*5)



## Drivers By default Hoard will use a HTTP driver, but you can extends the client and add your own ``` php $hoard = new Hoard\Client(array( 'server' => 'http://username.hoardhq.com', 'apikey' => 'XXX' )); $driver = new Hoard\Driver\GearmanDriver(array( 'host' => 'localhost', 'port' => 4730 )); $hoard->setDriver($driver); $response = $hoard->track('pageview', array( 'uri' => '/' )); echo 'Tracking ID: ' . $response->id;

The Versions

13/08 2013

dev-master

9999999-dev https://github.com/marcqualie/hoard-php-client

Hoard client library for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

mongodb log analytics logging stats

21/01 2013

v0.0.1

0.0.1.0 http://github.com/marcqualie/hoard-php-client

Hoard client library for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

log analytics logging stats