dereuromark/cakephp-audit-stash 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dereuromark/cakephp-audit-stash

Composer 安装命令:

composer require dereuromark/cakephp-audit-stash

包简介

Flexible and rock solid audit log tracking plugin for cakephp

README 文档

README

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

This branch is for CakePHP 5.3+. See 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

  • 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 & 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.

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 for the full walkthrough.

Documentation

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

  • Getting Started — installation, behavior setup, request metadata
  • Configuration — persisters, table list, route prefix
  • Usage — behavior options, custom events, custom persisters
  • TestingAuditAssertionsTrait for your own test suite
  • Features overview — viewer, monitoring, retention, tamper-evidence, GDPR

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.

统计信息

  • 总下载量: 19.8k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 1
  • 依赖项目数: 4
  • 推荐数: 2

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固