Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Audit Bundle Laravel Package

benmacha/audit-bundle

Symfony bundle to audit Doctrine entity changes with rollback support. Includes a web UI and REST API to browse audit logs, flexible configuration, security integration, and optional async processing. Supports PHP 7.4–8.4 and Symfony 5.4–7.x.

View on GitHub
Deep Wiki
Context7
1.0.0

Added

  • Core Auditing System

    • Automatic entity change tracking (insert, update, delete)
    • Doctrine event listeners for seamless integration
    • Comprehensive audit log storage with before/after values
    • User attribution and timestamp tracking
    • IP address and user agent logging
    • Custom metadata support
  • Attribute-Based Configuration

    • #[Auditable] attribute for entity-level configuration
    • #[IgnoreAudit] attribute for field-level exclusions
    • #[AuditSensitive] attribute for sensitive data handling
    • #[AuditMetadata] attribute for custom metadata
    • #[AuditContext] attribute for contextual information
  • Rollback Functionality

    • Entity restoration to previous states
    • Bulk rollback operations
    • Rollback to specific dates
    • Conflict detection and resolution
    • Rollback history tracking
    • Preview functionality before execution
  • Web Interface

    • Bootstrap-based responsive dashboard
    • Interactive audit log viewer with filtering
    • Entity history visualization
    • User activity tracking
    • Real-time updates via WebSocket
    • Export functionality (JSON, CSV, XML, Excel)
    • Configuration management interface
    • System status and health monitoring
  • REST API

    • Complete RESTful API endpoints
    • JWT-based authentication
    • Role-based authorization
    • Pagination and advanced filtering
    • OpenAPI/Swagger documentation
    • Rate limiting and security features
    • Batch operations support
    • Webhook integration
  • Performance & Scalability

    • Asynchronous processing with Symfony Messenger
    • Configurable data retention policies
    • Redis/Memcached caching integration
    • Database query optimization
    • Memory-efficient batch operations
    • Performance monitoring and metrics
  • Security & Privacy

    • Sensitive data encryption
    • Data anonymization strategies
    • Field-level access control
    • Security audit trails
    • IP whitelisting
    • CSRF protection
    • Two-factor authentication support
  • Console Commands

    • audit:cleanup - Clean up old audit logs
    • audit:export - Export audit data
    • audit:stats - Display audit statistics
    • audit:generate-test-data - Generate test data
    • audit:config:validate - Validate configuration
    • audit:rollback - Command-line rollback operations
  • Configuration System

    • Comprehensive YAML configuration
    • Entity-specific settings
    • Environment-based configuration
    • Runtime configuration updates
    • Configuration validation
    • Import/export configuration
  • Data Management

    • Multiple export formats (JSON, CSV, XML, Excel)
    • Data compression and archiving
    • Backup and restore functionality
    • Data migration tools
    • Cleanup and maintenance utilities
  • Monitoring & Observability

    • Performance metrics collection
    • System health checks
    • Error tracking and reporting
    • Activity statistics
    • Resource usage monitoring
    • Custom event dispatching
  • Integration Features

    • Symfony 6.0+ and 7.0+ support
    • Doctrine ORM 2.14+ and 3.0+ compatibility
    • PSR-4 autoloading
    • Composer integration
    • PHPUnit test suite
    • PHPStan static analysis
    • PHP-CS-Fixer code standards

Technical Details

  • PHP Requirements: PHP 8.1+
  • Symfony Compatibility: 6.0+ and 7.0+
  • Database Support: MySQL 8.0+, PostgreSQL 13+, SQLite 3.35+
  • Architecture: Event-driven with dependency injection
  • Testing: Comprehensive PHPUnit test coverage
  • Code Quality: PHPStan level 8, PHP-CS-Fixer standards

Documentation

  • Complete installation and configuration guide
  • Usage examples and best practices
  • API documentation with OpenAPI specification
  • Architecture and design documentation
  • Contributing guidelines
  • Security policy

Performance Benchmarks

  • Handles 10,000+ audit logs per minute
  • Sub-100ms response times for web interface
  • Efficient memory usage with batch processing
  • Optimized database queries with proper indexing
  • Scalable architecture for high-traffic applications
0.9.0

Added

  • Initial beta release
  • Core auditing functionality
  • Basic web interface
  • REST API foundation
  • Documentation framework

Known Issues

  • Performance optimization needed for large datasets
  • Limited export format support
  • Basic rollback functionality
0.8.0

Added

  • Alpha release for testing
  • Doctrine event listeners
  • Basic audit log storage
  • Simple configuration system

Known Issues

  • No web interface
  • Limited API endpoints
  • Basic error handling
0.7.0

Added

  • Proof of concept implementation
  • Entity change detection
  • Basic audit log structure
  • Initial bundle setup

Known Issues

  • Experimental features only
  • No production readiness
  • Limited testing coverage

Security

For security vulnerabilities, please email contact@benmacha.tn instead of using the issue tracker.

Release

Version 1.0.0 Highlights

This is the first stable release of the Symfony Audit Bundle, providing a comprehensive solution for entity auditing in Symfony applications. The bundle has been thoroughly tested and is ready for production use.

Key Features:

  • 🔍 Complete Audit Trail: Track all entity changes with detailed before/after values
  • 🔄 Powerful Rollback: Restore data to any previous state with conflict detection
  • 🌐 Modern Web Interface: Beautiful, responsive dashboard with real-time updates
  • 🚀 RESTful API: Complete API with authentication and comprehensive documentation
  • High Performance: Optimized for speed with asynchronous processing and caching
  • 🔒 Enterprise Security: Advanced security features including encryption and access control

Migration Guide: This is the initial stable release. No migration is required.

Breaking Changes: None - this is the initial stable release.

Upgrade Path: For users upgrading from beta versions (0.x), please refer to the migration guide in the documentation.

Compatibility Matrix

Bundle Version PHP Version Symfony Version Doctrine ORM
1.0.x 8.1+ 6.0+, 7.0+ 2.14+, 3.0+
0.9.x 8.1+ 6.0+ 2.14+
0.8.x 8.0+ 5.4+, 6.0+ 2.12+

Support Policy

  • Version 1.0.x: Active development and support
  • Version 0.9.x: Security fixes only until 2024-06-01
  • Version 0.8.x: End of life

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

We welcome contributions! Please see our Contributing Guide for details.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui