idlab/loggable

Allows you to log updates occurring on entities

Maintainers

Package info

github.com/idlab-geneve/loggable-bundle

Type:symfony-bundle

pkg:composer/idlab/loggable

Statistics

Installs: 34

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.1.3 2026-03-04 15:05 UTC

This package is not auto-updated.

Last update: 2026-03-04 15:05:34 UTC


README

Configuration in doctrine.yaml

To set under the wished connection configuration :

idlab_loggable:
    prefix: Idlab\Loggable\Entity
    dir: "%kernel.project_dir%/vendor/idlab/loggable/src/Entity"

Package file configuration

You can add a config file name "idlab_loggable.yaml" in config/packages in you Symfony project :

idlab_loggable:
    enabled: true
    disallowed_namespaces: [
        'Idlab\Loggable\Tests\Entity\IgnoredByNamespace'
    ]s
    disallowed_classes: [
        Idlab\Loggable\Tests\Entity\OtherDummyIgnoredByClass
    ]
    logs_target_connection_name: 'default'
    table_prefix: 'example_table_prefix_'

Add IdlabLoggable attribute

Import : 
use Idlab\Loggable\Mapping\Attributes\IdlabLoggable;

#[IdlabLoggable]
public ?string $value = null;