Download the PHP package litepie/logs without Composer
On this page you can find all versions of the php package litepie/logs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package logs
Litepie Logs
A comprehensive and powerful activity logging package for Laravel applications that provides detailed tracking and auditing capabilities with enhanced foreign key resolution, batch operations, and advanced filtering.
Features
- ๐ Automatic Model Logging - Track model changes automatically with the
LogsActivity
trait - ๐ Enhanced Foreign Key Resolution - Automatically resolve foreign keys to human-readable names
- ๐ฆ Batch Operations - Group related activities with batch UUIDs
- โก Queue Support - Process logs asynchronously for better performance
- ๐๏ธ Database Partitioning - Monthly partitioning for large datasets
- ๐ก๏ธ Privacy Protection - Anonymize sensitive data and exclude fields
- ๐ Advanced Filtering - Rich querying and filtering capabilities
- ๐ Statistics & Analytics - Built-in activity statistics and reporting
- ๐ Export Functionality - Export logs in multiple formats (CSV, JSON, PDF)
- ๐ฏ Retention Policies - Configurable data retention with automatic cleanup
- ๐ API Support - Optional API routes for external access
- ๐งช Comprehensive Testing - Full test suite with PHPUnit
๐ Quick Start
1. Install the Package
2. Publish Configuration & Run Migrations
3. Add the Trait to Your Model
4. That's It! ๐
All model changes are now automatically logged:
๐ Requirements
- PHP: 8.2, 8.3, or 8.4
- Laravel: 10.x, 11.x, or 12.x
- Database: MySQL 5.7+ (for partitioning features), PostgreSQL, SQLite
๐ Installation
Option 1: Quick Install (Recommended)
Option 2: Custom Installation
๐ก Tip: The package will automatically register its service provider in Laravel 5.5+
Configuration
The configuration file config/logs.php
provides extensive customization options:
Basic Usage
Automatic Model Logging
Add the LogsActivity
trait to any model you want to track:
Now all changes to your User model will be automatically logged:
Enhanced Foreign Key Resolution
Automatically resolve foreign keys to human-readable names:
When you update a user's category, the activity log will show:
- Instead of: "category_id changed from 1 to 2"
- You'll see: "Category changed from 'Technology' to 'Sales'"
Manual Activity Logging
Use the facade for manual logging:
Batch Operations
Group related activities with batch UUIDs:
Advanced Features
Querying Activities
Working with Activity Properties
Conditional Logging
Statistics and Analytics
Console Commands
The package includes several useful Artisan commands:
Clean Old Activity Logs
Export Activity Logs
Activity Statistics
API Endpoints
Enable API routes in configuration and access logs via RESTful endpoints:
Available endpoints:
GET /api/activity-logs
- List activitiesGET /api/activity-logs/{id}
- Get specific activityGET /api/activity-logs/stats
- Get statisticsGET /api/activity-logs/export
- Export activities
Performance Optimization
Database Partitioning
For high-volume applications, enable monthly partitioning:
This creates monthly partitions automatically for better query performance.
Queue Processing
Enable asynchronous processing for better performance:
Caching
Enable statistics caching:
Privacy and Security
Data Protection
Field Exclusion
Testing
Documentation
- ๐ Usage Examples - Comprehensive examples and real-world implementations
- ๐ Changelog - What has changed recently
- ๐ค Contributing Guide - How to contribute to this project
- โ๏ธ License - MIT License details
Changelog
Please see docs/changelog.md for more information on what has changed recently.
Contributing
Please see docs/contributing.md for details on how to contribute to this project.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see LICENSE for more information.
Support
- ๐ Examples & Tutorials - Learn with comprehensive examples
- ๐ Issues - Report bugs or request features
- ๐ฌ Discussions - Ask questions and share ideas
- ๐ง Email Support - Professional support available
What's Next?
- Advanced dashboard for activity visualization
- Real-time activity streaming
- Machine learning-powered anomaly detection
- Integration with popular monitoring tools
- Mobile app for activity monitoring
๐ข About
This package is part of the Litepie ecosystem, developed by Renfos Technologies.
Organization Structure
- Vendor: Litepie
- Framework: Lavalite
- Company: Renfos Technologies
Links & Resources
- ๐ Website: https://lavalite.org
- ๐ Documentation: https://docs.lavalite.org
- ๐ผ Company: https://renfos.com
- ๐ง Support: [email protected]
Built with โค๏ธ by Renfos Technologies
Empowering developers with robust Laravel solutions
All versions of logs with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/contracts Version ^10.0|^11.0|^12.0