idlab / loggable
Allows you to log updates occurring on entities
Package info
github.com/idlab-geneve/loggable-bundle
Type:symfony-bundle
pkg:composer/idlab/loggable
1.1.3
2026-03-04 15:05 UTC
Requires
- php: ^8.1 || ^8.2
- lexik/jwt-authentication-bundle: ^2.21
- symfony/security-bundle: ^6.4
Requires (Dev)
- doctrine/doctrine-bundle: ^2.7
- doctrine/orm: ^2.14
- friendsofphp/php-cs-fixer: ^3.93
- phpunit/phpunit: ^9.6
- symfony/framework-bundle: ^6.4
- symfony/yaml: ^6.4
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;