Overview
How to query analytics and manage resources with OI Laravel Umami
Usage
There are two ways to call the package:
php
use OiLab\OiLaravelUmami\Facades\Umami;
$stats = Umami::stats();php
use OiLab\OiLaravelUmami\Client;
public function __construct(private Client $umami) {}
$stats = $this->umami->stats();Every method returns a typed spatie/laravel-data
DTO (or a Collection of them). Explore:
- Reporting — stats, active visitors, pageviews, metrics.
- Websites & users — management CRUD.
- TypeScript DTOs — generating front-end interfaces.