Download the PHP package ibrahim-eng12/trackora without Composer
On this page you can find all versions of the php package ibrahim-eng12/trackora. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ibrahim-eng12/trackora
More information about ibrahim-eng12/trackora
Files in ibrahim-eng12/trackora
Package trackora
Short Description Trackora - A powerful Laravel package to track and analyze website visitors with detailed statistics, browser detection, geolocation, and a beautiful dashboard.
License MIT
Informations about the package trackora
Trackora
A powerful Laravel package to track and analyze website visitors with detailed statistics, browser detection, geolocation, and a beautiful dashboard with light/dark mode support.
Features
- Track website visitors automatically with middleware
- Browser and platform detection
- Device type detection (Desktop, Mobile, Tablet)
- Geolocation support (country, city)
- Unique visitor tracking per day
- Beautiful responsive dashboard with statistics
- Light/Dark mode toggle with persistent preference
- Export data to CSV or JSON
- Configurable data retention
- Bot/crawler filtering
- API endpoint for statistics
Requirements
- PHP 8.1+
- Laravel 10.0+
Installation
Install the package via Composer:
Publish the configuration, migration, and asset files:
Run the migrations:
Usage
Automatic Tracking with Middleware
Add the tracking middleware to your routes or middleware groups:
Option 1: Global middleware (in bootstrap/app.php for Laravel 11+):
Option 2: Route middleware (in app/Http/Kernel.php for Laravel 10):
Option 3: Per-route middleware:
Manual Tracking
You can also track visitors manually:
Configuration
After publishing, the configuration file will be available at config/trackora.php:
Accessing the Dashboard
Visit /trackora (or your configured route prefix) to access the dashboard.
Statistics Methods
The Visitor model provides several static methods for statistics:
API Endpoint
The package provides a JSON API endpoint at /trackora/stats:
Response:
Customizing Views
Publish the views to customize the dashboard:
Views will be published to resources/views/vendor/trackora/.
Publishing Assets
If you need to customize the dashboard assets (logo, etc.):
Assets will be published to public/vendor/trackora/.
Restricting Dashboard Access
By User ID or Email
Add specific user IDs or emails to the allowed_users config:
By Custom Logic
Create your own middleware that extends AuthorizeTrackoraDashboard:
Scheduled Cleanup
To automatically purge old records, add this to your scheduler:
License
MIT License. See LICENSE for details.