mirko-pagliai / cakephp-entities-logger
Entities Logger plugin for CakePHP
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=8.1
- cakephp/cakephp: ^5.0
Requires (Dev)
- cakedc/cakephp-phpstan: ^4.0
- cakephp/cakephp-codesniffer: ^5.2
- mockery/mockery: ^1.6
- phpunit/phpunit: ^10.5.5 || ^11.1.3 || ^12.0.9
This package is auto-updated.
Last update: 2025-06-16 18:23:05 UTC
README
You can install the plugin via composer:
composer require --prefer-dist mirko-pagliai/cakephp-entities-logger
Load the plugin
$this->addPlugin('Cake/EntitiesLogger');
Create the table
CREATE TABLE IF NOT EXISTS `entities_changes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `entity_class` varchar(255) NOT NULL, `entity_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `type` varchar(100) NOT NULL, `datetime` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;