paresh27 / model-auditor
Framework-agnostic change auditing for PHP data structures
v1.0.0
2026-07-07 16:14 UTC
Requires
- php: ^8.3
Requires (Dev)
- pestphp/pest: ^4.7
README
Framework-agnostic change auditing for PHP data structures.
Installation
composer require yourvendor/model-auditor
Usage
use YourVendor\ModelAuditor\Auditor; use YourVendor\ModelAuditor\Storage\InMemoryAuditStorage; $auditor = new Auditor(new InMemoryAuditStorage()); $auditor->record('Invoice#42', $before, $after); foreach ($auditor->history() as $record) { // ... }
Testing
composer test
License
MIT