Search by

dereuromark / cakephp-audit-stash

dereuromark

Flexible and rock solid audit log tracking plugin for cakephp

Package info

github.com/dereuromark/cakephp-audit-stash

Homepage

Type:cakephp-plugin

pkg:composer/dereuromark/cakephp-audit-stash

Statistics

Installs: 68 330

Dependents: 4

Suggesters: 2

Stars: 9

Open Issues: 1

2.1.3 2026-10-07 16:00 UTC

README

Build Status Coverage Status PHPStan Latest Stable Version Minimum PHP Version License Total Downloads Coding Standards

This branch is for CakePHP 5. See version map for details.

Audit-trail plugin: records entity saves and deletes on tables with its behavior enabled. Optional metadata records the user and request.

Features

  • Entity audit trail: single behavior captures changed fields, before/after values, user, and request context.
  • Tamper-evidence: optional SHA-256 hash chain, verifiable via CLI. See the documentation for its limits.
  • Admin viewer: built-in dashboard, coverage report, search, diffs, timeline, and CSV/JSON export under /admin/audit-stash.
  • Monitoring & alerting: rules for mass-deletion and off-hours activity, notifications via email, webhook, or log channel.
  • Retention & cleanup: per-table retention policies and a dry-run-friendly cleanup CLI.
  • GDPR helpers: redaction and subject-access-export tooling.
  • Custom event types: log arbitrary actions (logins, exports, permission grants) through the same persister and viewer.
  • Flexible storage: database persister out of the box, optional Elasticsearch driver, or plug in your own.

Documentation

Full docs: https://dereuromark.github.io/cakephp-audit-stash/

Demo

https://sandbox.dereuromark.de/sandbox/audit-stash

Related Plugins

If you need to moderate or approve changes before they happen (rather than auditing them after), check out the Bouncer plugin. AuditStash records what already changed; Bouncer gates changes before they're persisted.