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)420.0k↓64.3%2[1 issues](https://github.com/laurynasgadl/amplitude-php/issues)[1 PRs](https://github.com/laurynasgadl/amplitude-php/pulls)MITPHPPHP &gt;=7.4CI failing

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 2d 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

32

—

LowBetter than 69% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community7

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

1150d 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

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[civicrm/civicrm-core

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

751291.4k43](/packages/civicrm-civicrm-core)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M420](/packages/drupal-core-recommended)

PHPackages © 2026

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