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

Product Decisions This Supports

  • Compliance & Governance: Enables GDPR, HIPAA, or SOX compliance by tracking all entity changes with immutable audit trails. Justifies "why" decisions for data modifications in audits.
  • Data Integrity: Supports rollback functionality for critical systems (e.g., financial, healthcare) where reverting to a previous state is essential.
  • Feature Roadmap:
    • Audit Trail for Admin Panels: Replace manual logging with automated tracking for user actions (e.g., content moderation, user bans).
    • Self-Service Data Correction: Allow users to request rollbacks for their own data (e.g., "undo my last order change").
    • Anomaly Detection: Integrate with monitoring tools to flag unusual patterns (e.g., rapid-fire updates to sensitive fields).
  • Build vs. Buy:
    • Buy: Avoid reinventing audit infrastructure (tracking, storage, UI, API) for projects requiring compliance or rollback.
    • Customize: Extend core functionality (e.g., add custom metadata, event listeners) without starting from scratch.
  • Use Cases:
    • Regulated Industries: Healthcare (patient records), Finance (transaction logs), Legal (case files).
    • High-Risk Systems: E-commerce (order modifications), SaaS (user data changes), IoT (device configurations).
    • Developer Tools: Debugging data corruption by replaying changes via the web UI/API.

When to Consider This Package

Adopt This Package If:

  • Your Symfony app requires immutable audit logs for compliance (e.g., GDPR Article 30, HIPAA).
  • You need rollback functionality for critical data (e.g., financial records, medical histories).
  • Your team lacks time/resources to build a scalable audit system from scratch (includes UI, API, storage).
  • You use Doctrine ORM and want minimal setup (auto-discovery via attributes).
  • Your stakeholders demand real-time visibility into data changes (web UI + API).
  • You need fine-grained control over what gets audited (ignore fields, async processing, custom metadata).

Look Elsewhere If:

  • You’re not using Symfony/Doctrine: This bundle is tightly coupled to Symfony’s ecosystem.
  • Your audit needs are simple (e.g., logging to a file or basic database table).
  • You require offline/audit-only databases: This stores audit data in the same DB by default (though configurable).
  • Your team prefers event sourcing over traditional auditing (this is not an event store).
  • You need multi-region compliance (audit data is stored in the primary DB connection).
  • Your project has extremely high write volumes (async processing helps, but may still impact performance).

How to Pitch It (Stakeholders)

For Executives:

"This package lets us automatically track and reverse all critical data changes—like a time machine for our database. For compliance-heavy industries (healthcare, finance), it’s a checklist requirement for audits. For customer-facing systems, it lets us undo mistakes (e.g., incorrect order edits) without manual logs. The built-in web dashboard and API give our team real-time visibility into data modifications, reducing risks from human error or bad actors. It’s like adding a ‘undo’ button to our entire application—saving us time, money, and potential legal headaches."

ROI Highlights:

  • Reduces compliance risk: Automates audit trail generation for GDPR/HIPAA/SOX.
  • Saves developer time: No need to build audit infrastructure from scratch (UI, API, storage).
  • Improves data integrity: Rollback functionality for critical systems.
  • Enhances transparency: Stakeholders can see who changed what and when.

For Engineering Teams:

*"This is a batteries-included audit solution for Symfony apps. It handles:

  • Automatic tracking of Doctrine entity changes (with fine-grained control via attributes).
  • Rollback capability to restore entities to previous states.
  • Web UI + REST API for querying audit logs (with role-based access).
  • Performance optimizations (async processing, batching, caching).

Why Use It?

  • Zero setup for basic use: Just add [Auditable] to your entities.
  • Extensible: Hook into events for custom logic (e.g., notifications, validation).
  • Symfony-native: Works seamlessly with Flex, Doctrine, and security systems.
  • Future-proof: Supports custom metadata, sensitive data masking, and TTL policies.

Trade-offs:

  • Adds a small DB overhead (configurable retention policies help).
  • Tightly coupled to Symfony/Doctrine (not a generic PHP solution).

Recommendation: Pilot on one high-risk entity (e.g., User, Payment) to validate the value before rolling out broadly."*

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