Installation
How to install OI Laravel Umami via Composer
Installation
Via Composer
bash
composer require oi-lab/oi-laravel-umamiThe 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-configThis 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-uuidFor 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-uuidSee Configuration for every available option.