PHPackages                             centralapps/tracker-client - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. centralapps/tracker-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

centralapps/tracker-client
==========================

Client for private-beta metric tracking system

2431PHP

Since Feb 10Pushed 13y ago1 watchersCompare

[ Source](https://github.com/CentralApps/TrackerClient)[ Packagist](https://packagist.org/packages/centralapps/tracker-client)[ RSS](/packages/centralapps-tracker-client/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Tracker Client
==============

[](#tracker-client)

This tool is a PHP based client for a metric tracking server, which is currently in beta-testing stage.

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

[](#installation)

Install via composer. In your composer.json file add to the requires section

```
"centralapps/tracker-client": "dev-master"

```

Run composer

```
php composer.phar update

```

Usage
-----

[](#usage)

```
$client = new \CentralApps\TrackerClient\Client(YOUR_ACCOUNT_ID, YOUR_API_KEY, YOUR_METRIC_SERVER_URL);
$metric = new \CentralApps\TrackerClient\Metric();
$metric->typeReference = 'user';
$metric->created = date('Y-m-d H:i:s'); // date user added
$metric->reference = 1; // a unique reference for this "user"
$metric->tags = array('some', 'tag', 'pretend');

$client->logMetric($metric);

$metric = new \CentralApps\TrackerClient\Metric();
$metric->typeReference = 'user';
$metric->reference = 1;
$metric->created = date('Y-m-d H:i:s'); // if object exists, this becomes the updated date
$metric->tags = array('some', 'tag', 'pretend', 'paid', '50GBP');

$client->logMetric($metric);

$metric = new \CentralApps\TrackerClient\Metric();
$metric->typeReference = 'user';
$metric->reference = 1;
$metric->removed = date('Y-m-d H:i:s');
$metric->created = date('Y-m-d H:i:s'); // date the user was removed from site
$metric->tags = array('some', 'tag', 'pretend', 'paid', '50GBP', 'cancelled');

$client->logMetric($metric);

```

Notes
-----

[](#notes)

The client library binds itself with PHP's register\_shutdown\_function, so the outbound curl request will not interfere with your users requests.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6132ed4ce3683ee41415742612934b9b6e521288782316250a7ede778711f8bf?d=identicon)[mkpeacock](/maintainers/mkpeacock)

---

Top Contributors

[![mkpeacock](https://avatars.githubusercontent.com/u/437037?v=4)](https://github.com/mkpeacock "mkpeacock (8 commits)")

### Embed Badge

![Health badge](/badges/centralapps-tracker-client/health.svg)

```
[![Health](https://phpackages.com/badges/centralapps-tracker-client/health.svg)](https://phpackages.com/packages/centralapps-tracker-client)
```

###  Alternatives

[mundschenk-at/php-typography

A PHP library for improving your web typography

78979.3k21](/packages/mundschenk-at-php-typography)[langleyfoxall/math_eval

✖️➕➖➗ `math\_eval` safely evaluates mathematical expressions

43704.2k3](/packages/langleyfoxall-math-eval)[kjmtrue/vietnam-zone

VietNam Zone

3115.5k](/packages/kjmtrue-vietnam-zone)

PHPackages © 2026

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