PHPackages                             dualmedia/es-log-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. dualmedia/es-log-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

dualmedia/es-log-bundle
=======================

Bundle for tracking changes and history of objects

1.5.2(2mo ago)0440↓33.3%1MITPHPPHP ^8.3

Since May 23Pushed 2mo agoCompare

[ Source](https://github.com/dualmediaspzoo/es-log-bundle)[ Packagist](https://packagist.org/packages/dualmedia/es-log-bundle)[ RSS](/packages/dualmedia-es-log-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (19)Versions (17)Used By (0)

[![Packagist Downloads](https://camo.githubusercontent.com/579cbf8d98ef8c6cd16b6601972825c91ce3cbed56625e96a008310d520b13c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6475616c6d656469612f65732d6c6f672d62756e646c65)](https://packagist.org/packages/dualmedia/es-log-bundle)

ElasticSearch Log Bundle
========================

[](#elasticsearch-log-bundle)

A Symfony Bundle for tracking changes and history of objects.

Install
-------

[](#install)

Simply `composer require dualmedia/es-log-bundle`

Then add the bundle to your `config/bundles.php` file like so

```
return [
    Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
    // other bundles ...
    DualMedia\EsLogBundle\EsLogBundle::class => ['all' => true],
];
```

Setup
-----

[](#setup)

Mark the entity you'd like to track progress of with `#[AsLoggedEntity]`, you may disable creation, update and deletion logs as needed.

Mark properties you'd like to track with `#[AsTrackedProperty]`, any changes done will trigger an update log. If an entity is updated, but no tracked properties were changed a log will **not** be created.

> Track everything by default
>
> You can track all properties in an entity by default by enabling `$includeByDefault` in `#[AsLoggedEntity]`. If you wish to disable a property from being tracked, simply mark it with `#[AsIgnoredProperty]`

To let the bundle discover your entities you must create a symfony configuration file (by default it's yaml) and add any required fields.

A sample configuration is provided below

```
# dm_es_logs.yaml

dm_es_logs:
  client_service: 'fos_elastica.client.default' # default value, set to an id of the ES client you're using
  index_name: 'dm_entity_logs' # default value
  entity_paths: # list of directories that contain your entities
    - '%kernel.project_dir%/src/SimpleApi/Entity'
    - '%kernel.project_dir%/src/Common/Entity'
    - '%kernel.project_dir%/src/ExternalApi/Entity'
```

> To add the index the bundle expects simply run `dualmedia:logs:create-index`, to delete run `dualmedia:logs:delete-index --force` (an optional `--if-exists` flag is available)

Optionally see src/Command/CreateEsIndexCommand for current

EasyAdmin
---------

[](#easyadmin)

An integration with [EasyAdminBundle](https://github.com/EasyCorp/EasyAdminBundle) is available, should work... Mostly.

Add `LogActionTrait` to your CrudController (preferably an abstract class), so it's available in any controller or at least the ones you know that will have your field.

Then use our field like any other field with `LogEntryField`. Give it any name, it's not used.

A list of logs for the entity you're looking at with the detail action should show up. JavaScript is required.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance91

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 60.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~27 days

Total

14

Last Release

75d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0642c17604cd51622ad504c999eb75ba78e5768bfa998eaa2922366fc90f0302?d=identicon)[pkly](/maintainers/pkly)

---

Top Contributors

[![pkly](https://avatars.githubusercontent.com/u/17160364?v=4)](https://github.com/pkly "pkly (17 commits)")[![JaWitold](https://avatars.githubusercontent.com/u/47141012?v=4)](https://github.com/JaWitold "JaWitold (7 commits)")[![ozgaB](https://avatars.githubusercontent.com/u/65957239?v=4)](https://github.com/ozgaB "ozgaB (4 commits)")

---

Tags

symfonyloggingelasticsearchormdoctrinelogs

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dualmedia-es-log-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dualmedia-es-log-bundle/health.svg)](https://phpackages.com/packages/dualmedia-es-log-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[hautelook/alice-bundle

Symfony bundle to manage fixtures with Alice and Faker.

19519.4M34](/packages/hautelook-alice-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M151](/packages/sulu-sulu)[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M155](/packages/sonata-project-doctrine-orm-admin-bundle)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
