PHPackages                             dereuromark/cakephp-audit-stash - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. dereuromark/cakephp-audit-stash

ActiveCakephp-plugin[Logging &amp; Monitoring](/categories/logging)

dereuromark/cakephp-audit-stash
===============================

Flexible and rock solid audit log tracking plugin for cakephp

2.1.0(2w ago)822.9k↑211%2[1 issues](https://github.com/dereuromark/cakephp-audit-stash/issues)3MITPHPPHP &gt;=8.2CI passing

Since Oct 15Pushed 2w ago1 watchersCompare

[ Source](https://github.com/dereuromark/cakephp-audit-stash)[ Packagist](https://packagist.org/packages/dereuromark/cakephp-audit-stash)[ Docs](https://dereuromark.github.io/cakephp-audit-stash/)[ RSS](/packages/dereuromark-cakephp-audit-stash/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (41)Versions (35)Used By (3)

AuditStash Plugin For CakePHP
=============================

[](#auditstash-plugin-for-cakephp)

[![Build Status](https://github.com/dereuromark/cakephp-audit-stash/actions/workflows/ci.yml/badge.svg)](https://github.com/dereuromark/cakephp-audit-stash/actions/workflows/ci.yml)[![Coverage Status](https://camo.githubusercontent.com/9e8a11d34734de59d21eef449df0c7bfd1c679123fe5646893cc1e8ada1103e3/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6465726575726f6d61726b2f63616b657068702d61756469742d73746173682f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/github/dereuromark/cakephp-audit-stash)[![PHPStan](https://camo.githubusercontent.com/f60d96f7c2579690ab6dfa8918f777fe93a02a92301c661eb38a85861a92b780/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230382d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org/)[![Latest Stable Version](https://camo.githubusercontent.com/badfa6961a435b9659574a1cbf2b34cc6b1f7f7351205681f7c32dcac500a27a/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d61756469742d73746173682f762f737461626c652e737667)](https://packagist.org/packages/dereuromark/cakephp-audit-stash)[![Minimum PHP Version](https://camo.githubusercontent.com/ec21f169d70b69344c67d6f18fa1a24d20476d2f0cd680e8c4a1534c22f34e5f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e322d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/3dbb6addd1c228fefcedfb242d2007f837484c51d0e04c5f69341b037b5d967d/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d61756469742d73746173682f642f746f74616c2e737667)](https://packagist.org/packages/dereuromark/cakephp-audit-stash)[![Coding Standards](https://camo.githubusercontent.com/7d06840986f78de39fb7ba7052db7208fb349427094ac1a4540449ca87776aff/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63732d506870436f6c6c6563746976652d707572706c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-collective/code-sniffer)

This branch is for **CakePHP 5.3+**. See [version map](https://github.com/dereuromark/cakephp-audit-stash/wiki#cakephp-version-map) for details.

Audit-trail plugin: records every create / update / delete on your Table classes, together with who made the change and from which request.

Features
--------

[](#features)

- **Entity audit trail** — single behavior captures changed fields, before/after values, user, and request context.
- **Tamper-evidence** — optional SHA-256 hash chain for GoBD / SOX / HIPAA-grade integrity, verifiable via CLI.
- **Admin viewer** — built-in dashboard, coverage report, search, diffs, timeline, and CSV/JSON export under `/admin/audit-stash`.
- **Monitoring &amp; alerting** — rules for mass-deletion and off-hours activity, notifications via email, webhook, or log channel.
- **Retention &amp; 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.

Installation
------------

[](#installation)

```
composer require dereuromark/cakephp-audit-stash
bin/cake plugin load AuditStash
bin/cake migrations migrate -p AuditStash
```

Then enable the behavior on any Table you want tracked — see the [Getting Started guide](https://dereuromark.github.io/cakephp-audit-stash/guide/) for the full walkthrough.

Documentation
-------------

[](#documentation)

Full docs: ****

- [Getting Started](https://dereuromark.github.io/cakephp-audit-stash/guide/) — installation, behavior setup, request metadata
- [Configuration](https://dereuromark.github.io/cakephp-audit-stash/guide/configuration) — persisters, table list, route prefix
- [Usage](https://dereuromark.github.io/cakephp-audit-stash/guide/usage) — behavior options, custom events, custom persisters
- [Testing](https://dereuromark.github.io/cakephp-audit-stash/guide/testing) — `AuditAssertionsTrait` for your own test suite
- [Features overview](https://dereuromark.github.io/cakephp-audit-stash/features/) — viewer, monitoring, retention, tamper-evidence, GDPR

Demo
----

[](#demo)

Related Plugins
---------------

[](#related-plugins)

If you need to moderate or approve changes **before** they happen (rather than auditing them after), check out the [Bouncer plugin](https://github.com/dereuromark/cakephp-bouncer). AuditStash records what already changed; Bouncer gates changes before they're persisted.

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance94

Actively maintained with recent releases

Popularity36

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 54.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~10 days

Total

26

Last Release

15d ago

Major Versions

0.3.12 → 1.0.02026-03-19

1.2.3 → 2.0.02026-05-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39854?v=4)[Mark Scherer](/maintainers/dereuromark)[@dereuromark](https://github.com/dereuromark)

---

Top Contributors

[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (192 commits)")[![lorenzo](https://avatars.githubusercontent.com/u/37621?v=4)](https://github.com/lorenzo "lorenzo (107 commits)")[![cnizzardini](https://avatars.githubusercontent.com/u/171294?v=4)](https://github.com/cnizzardini "cnizzardini (11 commits)")[![jippi](https://avatars.githubusercontent.com/u/22841?v=4)](https://github.com/jippi "jippi (9 commits)")[![nicosp](https://avatars.githubusercontent.com/u/4110066?v=4)](https://github.com/nicosp "nicosp (8 commits)")[![swiffer](https://avatars.githubusercontent.com/u/2990373?v=4)](https://github.com/swiffer "swiffer (6 commits)")[![bravo-kernel](https://avatars.githubusercontent.com/u/230500?v=4)](https://github.com/bravo-kernel "bravo-kernel (6 commits)")[![amayer5125](https://avatars.githubusercontent.com/u/3212673?v=4)](https://github.com/amayer5125 "amayer5125 (3 commits)")[![aceat64](https://avatars.githubusercontent.com/u/348675?v=4)](https://github.com/aceat64 "aceat64 (2 commits)")[![blamh](https://avatars.githubusercontent.com/u/114339?v=4)](https://github.com/blamh "blamh (1 commits)")[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (1 commits)")[![HridayTaneja](https://avatars.githubusercontent.com/u/19855146?v=4)](https://github.com/HridayTaneja "HridayTaneja (1 commits)")[![CauanCabral](https://avatars.githubusercontent.com/u/83092?v=4)](https://github.com/CauanCabral "CauanCabral (1 commits)")[![LordSimal](https://avatars.githubusercontent.com/u/9105243?v=4)](https://github.com/LordSimal "LordSimal (1 commits)")[![medero](https://avatars.githubusercontent.com/u/29695?v=4)](https://github.com/medero "medero (1 commits)")[![ajibarra](https://avatars.githubusercontent.com/u/794722?v=4)](https://github.com/ajibarra "ajibarra (1 commits)")[![arusinowski](https://avatars.githubusercontent.com/u/1587389?v=4)](https://github.com/arusinowski "arusinowski (1 commits)")[![bmudda](https://avatars.githubusercontent.com/u/1568534?v=4)](https://github.com/bmudda "bmudda (1 commits)")

---

Tags

audit-logaudit-trailcakephpcakephp-pluginloggingphppluginloggingcakephptrackingAudithistoryadmin-panelstandalone-ui

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dereuromark-cakephp-audit-stash/health.svg)

```
[![Health](https://phpackages.com/badges/dereuromark-cakephp-audit-stash/health.svg)](https://phpackages.com/packages/dereuromark-cakephp-audit-stash)
```

###  Alternatives

[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k36.8M157](/packages/owen-it-laravel-auditing)[dereuromark/cakephp-databaselog

A CakePHP plugin for storing and viewing application logs in the database

44172.5k2](/packages/dereuromark-cakephp-databaselog)[lordsimal/cakephp-sentry

Sentry plugin for CakePHP

12317.3k](/packages/lordsimal-cakephp-sentry)[dereuromark/cakephp-dto

A CakePHP plugin for generating immutable Data Transfer Objects with full type safety

3099.1k6](/packages/dereuromark-cakephp-dto)[dereuromark/cakephp-tags

Tags plugin for CakePHP

1764.8k1](/packages/dereuromark-cakephp-tags)[dereuromark/cakephp-translate

A CakePHP plugin for managing translations

1712.3k](/packages/dereuromark-cakephp-translate)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
