Introduction

Discover OI Laravel Umami and what it can do for your project

OI Laravel Umami

OI Laravel Umami is a thin, typed wrapper around the Umami analytics REST API. It works against both Umami Cloud (API key) and self-hosted instances (username/password), caches reporting responses, and returns spatie/laravel-data DTOs instead of loose arrays.

Because every response is a typed Data object under the OiLab\OiLaravelUmami\Data namespace, the DTOs are picked up automatically by OI Laravel TS to generate matching TypeScript interfaces for your Inertia / React front-end.

Highlights

  • Reporting — website stats, active visitors, pageview/session time series, and aggregated metrics, all cached.
  • Management — full CRUD for websites and users.
  • Typed DTOsWebsiteStatsData, PageviewsData, MetricData, WebsiteData, UserData, and friends.
  • Flexible auth — API key header for Umami Cloud, cached bearer token for self-hosted.
  • Facade + container — call it as Umami::stats() or inject the Client.

Head to Installation to get started.

Project under MIT License.
Design by