PHPackages                             primedata.ai/analytics-sdk-php - 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. primedata.ai/analytics-sdk-php

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

primedata.ai/analytics-sdk-php
==============================

Analytics PHP SDK

0.4.0(4y ago)0911MITPHP

Since Aug 3Pushed 4y ago5 watchersCompare

[ Source](https://github.com/primedata-ai/sdk-php)[ Packagist](https://packagist.org/packages/primedata.ai/analytics-sdk-php)[ RSS](/packages/primedataai-analytics-sdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (16)Used By (1)

[![Build Status](https://github.com/primedata-ai/sdk-php/workflows/PHP%20Test/badge.svg)](https://github.com/primedata-ai/sdk-php/workflows/PHP%20Test/badge.svg)

Usage
=====

[](#usage)

```
/**
@var $buffer QueueBuffer
*/
$buffer = YourQueueBuffer();
$client = new Client('s-1', 'w-1', $buffer);
$client->track('access_report', ['in' => 'the morning'],
    Event::withSessionID("s-id"),
    Event::withSource(new Source("site", "primedata.ai", array("price" => 20))),
    Event::withTarget(new Target("report", "CDP solution", array("pages" => 100)))
);

public function testSend()
{
    $client = new Client("web-1fcrwsKgV0Zk2EdpCFYIvYbNRgs", "1fcrwstLt8g0ggTL5K87a6O6umy");
    $client->track("purchase_product", ['total_value' => 2000, 'currency' => "USD"],
        Event::withSessionID("1e85YTciGhH6vLfLpmqhJfhFhpq"));
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

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

Every ~27 days

Recently: every ~77 days

Total

14

Last Release

1751d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/04059222b7e514b26300c2075e37ceb3b9dc3ff980717f26c443bf76afedfac1?d=identicon)[nguyenlephong](/maintainers/nguyenlephong)

---

Top Contributors

[![weburnit](https://avatars.githubusercontent.com/u/1016113?v=4)](https://github.com/weburnit "weburnit (12 commits)")[![nlphong](https://avatars.githubusercontent.com/u/68844513?v=4)](https://github.com/nlphong "nlphong (9 commits)")[![nguyenlephong](https://avatars.githubusercontent.com/u/25582949?v=4)](https://github.com/nguyenlephong "nguyenlephong (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/primedataai-analytics-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/primedataai-analytics-sdk-php/health.svg)](https://phpackages.com/packages/primedataai-analytics-sdk-php)
```

###  Alternatives

[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M79](/packages/google-cloud-core)[aporat/store-receipt-validator

PHP receipt validator for Apple App Store and Amazon Appstore

6503.9M9](/packages/aporat-store-receipt-validator)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[ashallendesign/favicon-fetcher

A Laravel package for fetching website's favicons.

190272.4k3](/packages/ashallendesign-favicon-fetcher)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[icawebdesign/hibp-php

PHP library for accessing the Have I Been Pwned API.

2545.6k2](/packages/icawebdesign-hibp-php)

PHPackages © 2026

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