Installation

How to install OI Laravel Umami via Composer

Installation

Via Composer

bash
composer require oi-lab/oi-laravel-umami

The service provider and the Umami facade are registered automatically through Laravel package discovery.

Publish the configuration

bash
php artisan vendor:publish --tag=oi-laravel-umami-config

This copies config/oi-laravel-umami.php into your application.

Environment

For Umami Cloud:

dotenv
UMAMI_BASE_URL=https://api.umami.is/v1
UMAMI_API_KEY=your-api-key
UMAMI_WEBSITE_ID=your-website-uuid

For a self-hosted instance (note the trailing /api):

dotenv
UMAMI_BASE_URL=https://stats.example.com/api
UMAMI_USERNAME=admin
UMAMI_PASSWORD=secret
UMAMI_WEBSITE_ID=your-website-uuid

See Configuration for every available option.

Project under MIT License.
Design by