PHPackages                             dreamcommerce/object-audit-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. dreamcommerce/object-audit-bundle

ActiveLibrary[Database &amp; ORM](/categories/database)

dreamcommerce/object-audit-bundle
=================================

Audit for Doctrine entities &amp; Sylius resources

1.2.4(4y ago)01251LGPL-2.1PHPPHP ^7.2CI failing

Since Mar 13Pushed 4y ago10 watchersCompare

[ Source](https://github.com/dreamcommerce/object-audit-bundle)[ Packagist](https://packagist.org/packages/dreamcommerce/object-audit-bundle)[ RSS](/packages/dreamcommerce-object-audit-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (14)Versions (18)Used By (0)

DreamCommerce Object Audit Bundle
=================================

[](#dreamcommerce-object-audit-bundle)

[![License](https://camo.githubusercontent.com/89e284049158b6a4043ef7151474d6431841f38c801bba5d9fa454444407b87a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f647265616d636f6d6d657263652f6f626a6563742d61756469742d62756e646c652e737667)](https://packagist.org/packages/dreamcommerce/object-audit-bundle)[![Version](https://camo.githubusercontent.com/02b98b4967c24046d1f380e37b2656e63b13b7ac02ab37733101c56c1f45015c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f647265616d636f6d6d657263652f6f626a6563742d61756469742d62756e646c652e737667)](https://packagist.org/packages/dreamcommerce/object-audit-bundle)[![Build status on Linux](https://camo.githubusercontent.com/acf25482b95e55bdda53783526fad6f044f49c69cf0081180849d53ceeb83cea/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f647265616d636f6d6d657263652f6f626a6563742d61756469742d62756e646c652f6d61737465722e737667)](http://travis-ci.org/dreamcommerce/object-audit-bundle)

This is a fork of the [SimpleThings EntityAudit](https://github.com/simplethings/EntityAudit) project.

Installation (Standalone)
-------------------------

[](#installation-standalone)

### Installing the lib/bundle

[](#installing-the-libbundle)

Simply run assuming you have installed composer.phar or composer binary:

```
$ composer require dreamcommerce/object-audit-bundle
```

Installation (In Symfony 3 Application)
---------------------------------------

[](#installation-in-symfony-3-application)

### Enable the bundle

[](#enable-the-bundle)

Enable the bundle in the kernel:

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        //...
            new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(),
            new DreamCommerce\Bundle\CommonBundle\DreamCommerceCommonBundle(),
            new DreamCommerce\Bundle\ObjectAuditBundle\DreamCommerceObjectAuditBundle(),
        //...
    );
    return $bundles;
}
```

### Configuration

[](#configuration)

You can configure the audited tables.

##### app/config/config.yml

[](#appconfigconfigyml)

```
dream_commerce_object_audit:
    resources:
        revision:
            classes:
                model: DreamCommerce\Component\ObjectAudit\Model\Revision

    configuration:
        base:
            ignored_properties:
                - globalIgnoreMe
            load_audited_collections: true
            load_audited_objects: true
            load_native_collections: true
            load_native_objects: true
        orm:
            table_prefix: ''
            table_suffix: _audit
            revision_id_field_prefix: revision_
            revision_id_field_suffix: ''
            revision_action_field_name: revision_action
            revision_action_field_type: dc_revision_action

    default_manager: foo
    managers:
        foo:
            object_manager: foo
            audit_object_manager: foo_audit
            driver: orm
            options:
                table_prefix: ''
                table_suffix: _audit
                revision_id_field_prefix: revision_
                revision_id_field_suffix: ''
                revision_action_field_name: revision_action
                revision_action_field_type: dc_revision_action
                load_audited_collections: true
                load_audited_objects: false
                load_native_collections: true
                load_native_objects: false
                ignored_properties:
                    - globalIgnoreMe2
        bar:
            object_manager: bar
            audit_object_manager: bar_audit
        baz:
            object_manager: baz
```

### Creating new tables

[](#creating-new-tables)

Call the command below to see the new tables in the update schema queue.

```
./bin/console doctrine:schema:update --dump-sql
```

Usage
-----

[](#usage)

### Define auditable entities

[](#define-auditable-entities)

You need add `Auditable` annotation for the entities which you want to auditable.

```
use Doctrine\ORM\Mapping as ORM;
use DreamCommerce\Component\ObjectAudit\Mapping\Annotation as Audit;

/**
 * @ORM\Entity()
 * @Audit\Auditable()
 */
class Page {
 //...
}
```

You can also ignore fields in an specific entity.

```
class Page {

    /**
     * @ORM\Column(type="string")
     * @Audit\Ignore()
     */
    private $ignoreMe;

}
```

Or if you prefer XML:

```

```

Or YAML:

```
Page:
  type: entity
  dreamcommerce:
    auditable: true
  id:
    id:
      type: integer
      generator:
        strategy: AUTO
  fields:
    ignoreMe:
      type: string
      dreamcommerce:
        ignore: true

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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 ~121 days

Recently: every ~403 days

Total

16

Last Release

1514d ago

PHP version history (3 changes)1.0.0PHP ~7.0

1.2.0PHP ^7.1

1.2.3PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/1390de4ba46e157eec0553af4ac9c4f8f233100722bb8b7b50744a9bc4fb5a88?d=identicon)[dreamcommerce](/maintainers/dreamcommerce)

---

Top Contributors

[![wotekPL](https://avatars.githubusercontent.com/u/11139267?v=4)](https://github.com/wotekPL "wotekPL (16 commits)")[![lazypeon](https://avatars.githubusercontent.com/u/1595966?v=4)](https://github.com/lazypeon "lazypeon (1 commits)")[![manwe-pl](https://avatars.githubusercontent.com/u/8430923?v=4)](https://github.com/manwe-pl "manwe-pl (1 commits)")

---

Tags

auditdoctrinedoctrine-extensiondoctrine-ormrevisionssymfony-bundlepersistencedatabaseAudit

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/dreamcommerce-object-audit-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dreamcommerce-object-audit-bundle/health.svg)](https://phpackages.com/packages/dreamcommerce-object-audit-bundle)
```

###  Alternatives

[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[doctrine/doctrine-bundle

Symfony DoctrineBundle

4.8k241.3M3.3k](/packages/doctrine-doctrine-bundle)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M35](/packages/scienta-doctrine-json-functions)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[bartlett/php-compatinfo-db

Reference Database of all functions, constants, classes, interfaces on PHP standard distribution and about 110 extensions

1183.0k1](/packages/bartlett-php-compatinfo-db)[tawfekov/zf2entityaudit

EntityAudit Module for Zend Framework2 , Doctrine2 and web interface

1910.4k](/packages/tawfekov-zf2entityaudit)

PHPackages © 2026

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