hiromi2424/cakephp-changelog

Slack log engine for CakePHP

v0.1-beta 2017-01-13 08:25 UTC

This package is not auto-updated.

Last update: 2024-04-28 00:27:04 UTC


README

Build Status Coverage Status Total Downloads Latest Stable Version Scrutinizer

What is this?

This is CakePHP plugin to provide saving changelogs for database records.

Installation

composer require hiromi2424/cakephp-changelog
bin/cake plugin load Changelog # OR manually add `Plugin::load('Changelog');`

Requirements

  • CakePHP 3.x
  • PHP 5.5+

Usage

Setup database tables

There is config/Schema/changelogs.sql for general purpose. If you need to use another column or to change size of columns, change table schemas as you need.

Configuration

You also should setup each table to use Changelog Behavior.

`$this->loadBehavior('Changelog.Changelog', [
    // ... your options
])`
  • TODO: define options