PHPackages                             waaseyaa/analytics - 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. waaseyaa/analytics

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

waaseyaa/analytics
==================

Shared Umami analytics integration for Waaseyaa apps — backend sender, JS helpers, and Twig partial.

v0.1.0-alpha.259(3w ago)01.3k↑242.9%1GPL-2.0-or-laterPHPPHP &gt;=8.5

Since Apr 13Pushed 1w agoCompare

[ Source](https://github.com/waaseyaa/analytics)[ Packagist](https://packagist.org/packages/waaseyaa/analytics)[ RSS](/packages/waaseyaa-analytics/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (122)Used By (1)

waaseyaa/analytics
==================

[](#waaseyaaanalytics)

**Layer 0 — Foundation**

Shared Umami analytics integration for Waaseyaa apps.

Provides a server-side `UmamiClient` that proxies pageview and event records through the host server (avoiding browser-side ad-blocker collisions) and a tiny JS helper for client-side event reporting. No tracking scripts are loaded automatically — hosts opt in by injecting the bundled Twig partial and configuring the Umami URL.

Key classes: `UmamiClient`, `Transport` (interface), `StreamTransport` (default implementation).

Extension points
----------------

[](#extension-points)

`UmamiClient` accepts two optional trailing constructor parameters that do not affect existing callers:

- **`?Transport $transport = null`** — replaces the built-in `StreamTransport` (a `file_get_contents` + `stream_context_create` POST). Implement `Waaseyaa\Analytics\Transport` to swap in a different HTTP backend (e.g. cURL, async, test spy). `Transport` is marked `@api`.
- **`?\Closure $logger = null`** — a zero-dependency logger sink with the signature `(string $message, array $context = []): void`. When provided, it receives a message on both the misconfig early-return path (empty `trackerUrl`/`siteId`) and any failed-send or transport-exception path. `null` (default) preserves the original silent fail-open behaviour.

This package has **no `waaseyaa/*` dependencies** — `require` is `php >=8.5` only.

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance97

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

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.

###  Release Activity

Cadence

Every ~1 days

Total

121

Last Release

24d ago

PHP version history (2 changes)v0.1.0-alpha.137PHP &gt;=8.4

v0.1.0-alpha.176PHP &gt;=8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/25d0ff572e93e3461e5180a920725d65691fd1e15e2d914b254dbbc2d6c393bd?d=identicon)[jonesrussell](/maintainers/jonesrussell)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/waaseyaa-analytics/health.svg)

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

###  Alternatives

[lorisleiva/lody

Load files and classes as lazy collections in Laravel.

957.9M15](/packages/lorisleiva-lody)

PHPackages © 2026

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