PHPackages                             mixpanel/php-sdk - 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. mixpanel/php-sdk

ActiveLibrary

mixpanel/php-sdk
================

Mixpanel PHP SDK

41.3k1PHP

Since Jun 17Pushed 13y ago1 watchersCompare

[ Source](https://github.com/rodchyn/mixpanel-php)[ Packagist](https://packagist.org/packages/mixpanel/php-sdk)[ RSS](/packages/mixpanel-php-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Mixpanel PHP SDK
================

[](#mixpanel-php-sdk)

Library include two classes

[Mixpanel](https://mixpanel.com/docs/api-documentation/data-export-api) - for data requests.

[MetricsTracker](https://mixpanel.com/docs/integration-libraries/php) - to track program events

Example usage
-------------

[](#example-usage)

MetricsTracker

```
$metrics = new MetricsTracker("YOUR_TOKEN");
$metrics->track('purchase', array('item'=>'candy', 'type'=>'snack', 'ip'=>'123.123.123.123'));

```

Mixpanel

```
$api_key = 'your key';
$api_secret = 'your secret';

$mp = new Mixpanel($api_key, $api_secret);
$data = $mp->request(array('events', 'properties'), array(
   'event' => 'pages',
   'name' => 'page',
   'type' => 'unique',
   'unit' => 'day',
   'interval' => '20',
   'limit' => '20'
));

var_dump($data);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

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://avatars.githubusercontent.com/u/209245?v=4)[Yura Rodchyn](/maintainers/rodchyn)[@rodchyn](https://github.com/rodchyn)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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