Download the PHP package api-analytics/laravel without Composer
On this page you can find all versions of the php package api-analytics/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download api-analytics/laravel
More information about api-analytics/laravel
Files in api-analytics/laravel
Package laravel
Short Description API Analytics middleware for Laravel applications.
License MIT
Homepage https://github.com/tom-draper/api-analytics-php-laravel
Informations about the package laravel
API Analytics for Laravel
A free and lightweight API analytics solution, complete with a dashboard.
Getting Started
1. Generate an API key
Head to apianalytics.dev/generate to generate your unique API key with a single click.
2. Install the package
3. Add your API key
Add to your .env file:
4. Register the middleware
Add to app/Http/Kernel.php:
5. View your analytics
Your API will now log incoming requests. View your dashboard at apianalytics.dev/dashboard.
Configuration
Publish the config file (optional):
This creates config/api-analytics.php:
Custom User ID
Track users by authenticated user or API key:
Or in a service provider for more control:
Privacy Levels
Control IP address handling via environment:
0- IP stored, location inferred (default)1- Location inferred, IP discarded2- IP never sent
Facade Usage
Access the analytics client directly:
Testing
Mock the client in tests:
Self-Hosting
For self-hosted instances:
More Information
All versions of laravel with dependencies
illuminate/contracts Version ^9.0 || ^10.0 || ^11.0
illuminate/http Version ^9.0 || ^10.0 || ^11.0
illuminate/support Version ^9.0 || ^10.0 || ^11.0