Skip to content

paresh27/model-auditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Model Auditor

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages