定制 dereuromark/cakephp-bouncer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

dereuromark/cakephp-bouncer

最新稳定版本:0.1.5

Composer 安装命令:

composer require dereuromark/cakephp-bouncer

包简介

CakePHP plugin for approval workflow - users propose changes, admins approve or reject before publishing

README 文档

README

Build Status Minimum PHP Version License

This plugin implements an approval workflow for CakePHP applications. Users propose changes (create or edit records), and admins/moderators can review, approve, or reject those changes before they are published to the actual database tables.

Perfect for:

  • Content management systems requiring editorial approval
  • User-generated content that needs moderation
  • Data entry systems with quality control
  • Multi-stage approval workflows

Note: Revert functionality is intentionally out of scope for this plugin. For reverting changes to previous states, use the cakephp-audit-stash plugin which provides comprehensive audit logging and revert capabilities. Bouncer focuses solely on the approval workflow for proposed changes.

Features

  • Seamless Integration: Add approval workflow to any table with a single behavior
  • Draft Management: Users automatically edit their existing drafts instead of creating duplicates
  • Admin Interface: Built-in UI for reviewing and approving/rejecting changes with diff view
  • Flexible Configuration: Configure which actions require approval, use custom bypass callbacks
  • Transaction Safety: Atomic approval process with rollback on errors
  • AuditStash Integration: Works seamlessly with cakephp-audit-stash for complete audit trail

Installation

Install via composer:

composer require dereuromark/cakephp-bouncer
bin/cake plugin load Bouncer

Run the migrations to create the `bouncer_records` table:

bin/cake migrations migrate -p Bouncer

Documentation

See docs/README.md for detailed documentation including:

  • Quick start guide
  • Configuration options
  • Advanced usage (bypass callbacks, programmatic approval)
  • AuditStash integration
  • How it works

Demo

See the plugin in action: https://sandbox.dereuromark.de/sandbox/bouncer-examples

Contributing

See CONTRIBUTING.md for details on how to contribute to this project.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-16