ceeram / cakephp-blame
CakePHP plugin to update created_by and modified_by fields
Installs: 5 429
Dependents: 0
Suggesters: 0
Security: 0
Stars: 25
Watchers: 4
Forks: 8
Open Issues: 3
Type:cakephp-plugin
Requires
- php: >=5.4.0
- cakephp/plugin-installer: *
Requires (Dev)
- cakephp/cakephp: ~3.0
- phpunit/phpunit: 4.1.*
README
CakePHP 3.0 plugin to update created_by
and modified_by
fields.
Abandoned
This package is abandoned and no longer maintained. The author suggests using the muffin/footprint package instead.
Installation
Add the following lines to your application's composer.json
:
"require": {
"ceeram/cakephp-blame": "~1.0"
}
followed by the command:
composer update
Or run the following command directly without changing your composer.json
:
composer require ceeram/cakephp-blame:~1.0
Usage
In your app's config/bootstrap.php
add: Plugin::load('Ceeram/Blame')
;
Configuration
Add the following line to your AppController:
use \Ceeram\Blame\Controller\BlameTrait;
Add the following inside your AppController Class
class AppController extends Controller
{
use BlameTrait;
}
Attach the behavior in the models you want with:
public function initialize(array $config) {
$this->addBehavior('Ceeram/Blame.Blame');
}