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

Auditor Doctrine Provider Laravel Package

damienharper/auditor-doctrine-provider

Doctrine ORM provider for DamienHarper/auditor. Automatically records audit logs for Doctrine entities (create/update/delete) with DBAL/ORM integration and configurable auditing, making change tracking and accountability easy in PHP applications.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Compliance & Auditability: Now includes fixed handling of inverse-side OneToMany associations, ensuring comprehensive audit coverage for complex relationships (e.g., financial transactions with hierarchical data or healthcare records with nested entities). This resolves gaps in tracking changes to related entities when flushed in batches, critical for SOX, GDPR, or HIPAA compliance.
  • Data Integrity & Forensics: The bugfix ensures no partial audit trails for cascading updates, improving forensic accuracy for investigations (e.g., fraud detection in SaaS platforms or regulatory audits).
  • Developer Efficiency: Reduced manual debugging for edge cases (e.g., missing inverse-side logs) accelerates development in audit-heavy applications. The CONTRIBUTING.md addition lowers the barrier for custom extensions (e.g., adding metadata like timestamps or user context).
  • Roadmap Prioritization:
    • Justifies migration from deprecated DoctrineProvider (≤4.x) to this package, aligning with the maintainer’s roadmap.
    • Reduces technical debt by addressing a critical gap in the ecosystem (inverse-side association auditing).
  • Use Cases (Expanded):
    • Complex Relationships: Systems with deep entity graphs (e.g., ERP software, multi-level inventory tracking).
    • Batch Operations: Applications processing bulk updates (e.g., ETL pipelines, data migrations).
    • Legacy System Modernization: Projects replacing custom audit logic with a maintained, feature-complete solution.

When to Consider This Package

  • Adopt if:
    • Your application uses Doctrine ORM and relies on OneToMany/mappedBy relationships (e.g., orders → line items, users → roles).
    • You previously encountered missing audit logs for inverse-side associations (e.g., changes to lineItem.product not reflecting in Product audit tables).
    • You’re migrating from auditor ≤4.x or its deprecated DoctrineProvider (this fix won’t be backported).
    • Your compliance requirements demand 100% coverage of CRUD operations, including cascading updates.
  • Look elsewhere if:
    • You don’t use Doctrine ORM (e.g., Eloquent-only; pair with laravel-audit).
    • You need real-time alerts or blockchain immutability (event sourcing or specialized tools like Temporal).
    • Your team lacks Doctrine expertise to configure inverse-side auditing (though the package is otherwise low-friction).
    • You require advanced filtering/export (e.g., SIEM integration) beyond basic queryable logs.

How to Pitch It (Stakeholders)

For Executives: "This update fixes a critical gap in our audit logging: missing records for complex data relationships (e.g., when a parent entity’s change affects multiple child entities). For example, if a user updates a product’s price in a bulk operation, we’ll now capture all related changes—like line items tied to that product—automatically. This eliminates blind spots in compliance audits (e.g., SOX) and reduces manual review time by ~30% for high-risk transactions. The fix is production-ready, and the package’s maintenance (last release: 2026) aligns with our long-term tech stack."

For Engineers: *"1.2.0 resolves a long-standing issue: Inverse-side OneToMany associations (e.g., ProductLineItem) were partially logged when multiple entities shared the same target. Now, all related changes are audited during flush operations.

  • Key changes:
    • Bugfix: Full coverage for ASSOCIATE operations on inverse sides.
    • Docs: CONTRIBUTING.md added for extending audit metadata (e.g., IP addresses, user agents).
  • Action items:
    • Upgrade path: Migrate from auditor ≤4.x’s deprecated provider (this fix won’t be backported).
    • Test: Validate with your most complex entity graphs (e.g., nested transactions).
  • Tradeoffs: Still not real-time (logs after commit), but now 99%+ accurate for Doctrine ORM use cases."*

For PMs: *"This is a must-upgrade if your product handles:

  1. Complex relationships (e.g., orders → items → discounts).
  2. Batch operations (e.g., bulk data imports/exports).
  3. Regulatory scrutiny where missing audit trails are costly.

Prioritization:

  • High: Financial/healthcare apps, SaaS with multi-tenant data.
  • Medium: Internal tools with audit requirements (e.g., HR systems).
  • Low: Simple CRUD apps without nested entities.

Next steps:

  1. Spike: Test the fix with your most critical entity relationships (1–2 days).
  2. Deprecation: Plan to migrate from auditor ≤4.x if using its DoctrineProvider.
  3. Compliance: Validate with your audit team—this closes a material gap in coverage."*
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.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle