Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Amplitude Php Laravel Package

zumba/amplitude-php

A PHP client for Amplitude analytics that simplifies sending server-side events and user identification data to Amplitude's HTTP API. It offers a lightweight integration for Laravel and other PHP apps, with a simple API for tracking events and user properties.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Roadmap prioritization and retention analysis: this package lets the Laravel backend emit server-authoritative events (signups, upgrades, cancellations, entitlement changes) into Amplitude, so PMs can analyze funnels and cohort retention using backend truth rather than only client-side signals.
  • Build vs. buy on analytics plumbing: instead of having engineering write a custom Amplitude HTTP client, this package provides a maintained, MIT-licensed integration — a small but real "buy" decision that redirects engineering effort to product work.
  • Instrumentation scope decisions: it enables a deliberate split between client-side SDK events (UI interactions) and server-side events (payments, subscription lifecycle, webhook-driven state changes) — the events that are difficult or untrustworthy to track from the browser/mobile clients.
  • Use cases it unlocks: revenue and subscription analytics, backend A/B test exposure logging, feature adoption tracking tied to account state, and consistency of event names/schemas across web, mobile, and server.
  • Data trust decisions: because events originate server-side, finance- and lifecycle-critical metrics (MRR, churn, plan changes) can be sourced from a system of record rather than inferred.

When to Consider This Package

Consider it when:

  • Amplitude is already (or is about to be) the chosen product analytics vendor — this package is only useful against that specific platform.
  • You have a Laravel/PHP backend and need server-side event tracking: purchases, subscription changes, provisioning events, or any state transition that only the backend can attest to.
  • Event volumes are moderate and a straightforward HTTP-based send (with batching where supported by the wrapper) is acceptable.
  • You value a permissive MIT license and a thin, easily wrapped dependency.
  • You want to standardize event emission behind an internal service/interface so the vendor can later be swapped.

Look elsewhere when:

  • You haven't selected an analytics vendor yet — don't couple roadmap analytics decisions to a single low-adoption package prematurely.
  • You need official vendor support, SLAs, or a verified maintainer. Note: repository provenance is listed as unknown and adoption is low (~40 stars), so treat it as a convenience wrapper, not a strategic dependency.
  • You need high-throughput, guaranteed-delivery pipelines (Kafka, streaming, durable queues) — this is a client, not an event infrastructure layer.
  • You require strict schema governance, PII redaction, or audit trails beyond what a thin HTTP wrapper offers.
  • A first-party or better-maintained PHP SDK becomes available; re-evaluate at that point.

Adoption guardrails: pin the version, wrap it behind an internal analytics interface, add integration tests around payload shape, and confirm the release cadence and maintainer responsiveness before making it load-bearing.

How to Pitch It (Stakeholders)

For executives: This is a small, low-cost (MIT-licensed) integration that lets our backend send trusted product events to Amplitude. It improves the quality of the data behind roadmap and retention decisions — especially for revenue and subscription metrics that the front end cannot reliably report — without a bespoke engineering build. The main caveat is that it's a lightweight, low-adoption package, so we'll isolate it behind our own interface to avoid lock-in.

For engineering: It's a thin, actively released (Dec 2025) PHP client for Amplitude's API, installable via Composer and straightforward to wire into the Laravel service container. Because it's a wrapper rather than infrastructure, we'll encapsulate it behind an internal AnalyticsClient interface, pin the version, and cover event payloads with tests — so a vendor or package change is a one-class swap, not a refactor. It does not solve delivery guarantees or schema validation; those remain our responsibility.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log