PHPackages                             marcqualie/hoard - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. marcqualie/hoard

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

marcqualie/hoard
================

Hoard client library for PHP

v0.0.1(13y ago)28591[1 issues](https://github.com/marcqualie/hoard-php-client/issues)MITPHPPHP &gt;=5.3.0

Since Jan 21Pushed 12y ago1 watchersCompare

[ Source](https://github.com/marcqualie/hoard-php-client)[ Packagist](https://packagist.org/packages/marcqualie/hoard)[ Docs](http://github.com/marcqualie/hoard-php-client)[ RSS](/packages/marcqualie-hoard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Hoard PHP Client
================

[](#hoard-php-client)

[![Total Downloads](https://camo.githubusercontent.com/e95af787a4548088ed79fa0804c6556ad30344f08794d889cb290d33b930d758/68747470733a2f2f706f7365722e707567782e6f72672f6d6172637175616c69652f686f6172642f646f776e6c6f6164732e706e67)](https://packagist.org/packages/marcqualie/hoard)[![Latest Stable Version](https://camo.githubusercontent.com/ec7cc9069efbeec68af307522b24884571b5bc1691e9c183990f42e941bdc53e/68747470733a2f2f706f7365722e707567782e6f72672f6d6172637175616c69652f686f6172642f762f737461626c652e706e67)](https://packagist.org/packages/marcqualie/hoard)

This is the client library to track events and get information back from a Hoard server

Installation
------------

[](#installation)

#### Via Composer

[](#via-composer)

Put this code in your composer.json file

```
{
    "require": {
        "marcqualie/hoard": "dev-master"
    }
}
```

Usage
-----

[](#usage)

```
$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
----------------------

[](#silex-service-provider)

```
$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;
```

Drivers
-------

[](#drivers)

By default Hoard will use a HTTP driver, but you can extends the client and add your own

```
$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;
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4859d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f5dc4e05c517501e1d77e131ebcdc366fd085e4f82db2732e3864d4ddf6368b2?d=identicon)[marcqualie](/maintainers/marcqualie)

---

Top Contributors

[![marcqualie](https://avatars.githubusercontent.com/u/101022?v=4)](https://github.com/marcqualie "marcqualie (32 commits)")[![scottrobertson](https://avatars.githubusercontent.com/u/68361?v=4)](https://github.com/scottrobertson "scottrobertson (7 commits)")

---

Tags

loglogginganalyticsstats

### Embed Badge

![Health badge](/badges/marcqualie-hoard/health.svg)

```
[![Health](https://phpackages.com/badges/marcqualie-hoard/health.svg)](https://phpackages.com/packages/marcqualie-hoard)
```

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k964.9M7.0k](/packages/monolog-monolog)[symfony/monolog-bundle

Symfony MonologBundle

2.9k249.1M1.6k](/packages/symfony-monolog-bundle)[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[rap2hpoutre/laravel-log-viewer

A Laravel log reader

3.2k14.7M71](/packages/rap2hpoutre-laravel-log-viewer)[sentry/sdk

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

327134.8M151](/packages/sentry-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
