Download the PHP package kikwik/doctrine-entity-logger-bundle without Composer
On this page you can find all versions of the php package kikwik/doctrine-entity-logger-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kikwik/doctrine-entity-logger-bundle
More information about kikwik/doctrine-entity-logger-bundle
Files in kikwik/doctrine-entity-logger-bundle
Package doctrine-entity-logger-bundle
Short Description Listener for doctrine entity changes
License MIT
Informations about the package doctrine-entity-logger-bundle
KikwikDoctrineEntityLoggerBundle
⚠️ Note: This bundle is a work in progress and may be subject to changes.
The KikwikDoctrineEntityLoggerBundle is a Symfony bundle designed to log changes made to Doctrine entities. With this bundle, you can easily track modifications to your database entities and maintain a historical record of changes in a dedicated table.
Key Features:
- Automatic logging of updates, inserts, and deletions for Doctrine entities.
- Stores change history in a database table (
kw_entity_log
) for easy access and review. - Integrates seamlessly with Symfony projects.
This bundle enables quick and effective logging of entity changes, making it a valuable tool for projects requiring audit trails or entity history tracking.
This bundle is inspired by the manasbala/doctrine-log-bundle and the gedmo/doctrine-extensions projects.
The tests for this bundle were developed with the help of the following article: Symfony functional tests for standalone bundles.
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Open a command console, enter your project directory and execute:
Update the database to create the logger table (kw_entity_log):
Usage
Add the \Kikwik\DoctrineEntityLoggerBundle\Attributes\LoggableEntity
attribute to the entities you want to log
Easy Admin
If you are using easy admin you can create a ready-to-use Crud controller by extending KikwikLogCrudController
:
All versions of doctrine-entity-logger-bundle with dependencies
symfony/framework-bundle Version ^6.4|^7.0
stof/doctrine-extensions-bundle Version ^1.7
doctrine/orm Version 3.*
doctrine/doctrine-bundle Version 2.*