PHPackages                             laurynasgadl/amplitude-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. laurynasgadl/amplitude-php

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

laurynasgadl/amplitude-php
==========================

PHP Amplitude client package

3.1.0(3y ago)419.4k↓30.2%3[1 PRs](https://github.com/laurynasgadl/amplitude-php/pulls)MITPHPPHP &gt;=7.4

Since Jul 10Pushed 3y agoCompare

[ Source](https://github.com/laurynasgadl/amplitude-php)[ Packagist](https://packagist.org/packages/laurynasgadl/amplitude-php)[ RSS](/packages/laurynasgadl-amplitude-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (5)Used By (0)

Amplitude PHP client
====================

[](#amplitude-php-client)

Straightforward Amplitude client package.

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

[](#installation)

`composer require laurynasgadl/amplitude-php`

Example
-------

[](#example)

### Sending a single event

[](#sending-a-single-event)

```
use Luur\Amplitude\Amplitude;
use Luur\Amplitude\Event;

$amplitude = new Amplitude('api-key');

$event = new Event();
$event->user_id = '123456';
$event->event_type = 'test-event';

$result = $amplitude->send($event);
```

### Sending multiple events

[](#sending-multiple-events)

```
use Luur\Amplitude\Amplitude;
use Luur\Amplitude\Message;
use Luur\Amplitude\Event;

$amplitude = new Amplitude('api-key');

$event_1 = new Event([
    'user_id' => '123456',
    'event_type' => 'test-event',
]);

$event_2 = new Event([
    'user_id' => '987654',
    'event_type' => 'test-event',
]);

$message = new Message([
    $event_1,
    $event_2,
]);

$result = $amplitude->send($message);
```

### V2 API

[](#v2-api)

```
use Luur\Amplitude\AmplitudeV2;
use Luur\Amplitude\Event;

$amplitude = new AmplitudeV2('api-key');

$event = new Event();
$event->user_id = '123456';
$event->event_type = 'test-event';

$result = $amplitude->send($event);
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~466 days

Total

4

Last Release

1104d ago

Major Versions

1.0.0 → 2.02020-12-22

2.0 → 3.0.02021-12-22

PHP version history (2 changes)1.0.0PHP &gt;=5.6

2.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/96be8579ec0431ecc7a87ea091e9eaf1a45d8c662c6b12d1338bd05b21cb964f?d=identicon)[laurynasgadl](/maintainers/laurynasgadl)

---

Top Contributors

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

---

Tags

phpclientamplitude

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laurynasgadl-amplitude-php/health.svg)

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

###  Alternatives

[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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