PHPackages                             priyank/doctrine-odm-audit - 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. priyank/doctrine-odm-audit

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

priyank/doctrine-odm-audit
==========================

To Store New/old value as audit in database on flush event of ODM Doctrine

1.0.8(7y ago)0167MITPHP

Since Jan 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Priyank780/doctrine-odm-audit)[ Packagist](https://packagist.org/packages/priyank/doctrine-odm-audit)[ RSS](/packages/priyank-doctrine-odm-audit/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (3)Versions (9)Used By (0)

Doctrine ODM Audit
==================

[](#doctrine-odm-audit)

[![Codacy Badge](https://camo.githubusercontent.com/89956fa2e41ba33961ab316e2782f2ec8e88846c458329ae446d0d723ffdfd33/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6632303931373231633661333433653138333936636538353437396336316539)](https://www.codacy.com/app/Priyank780/doctrine-odm-audit?utm_source=github.com&utm_medium=referral&utm_content=Priyank780/doctrine-odm-audit&utm_campaign=badger)[![Latest Stable Version](https://camo.githubusercontent.com/e11b77f97ace9de6d0443df7512222d003c993f2bc03ddb1ed74d1e47aff0df5/68747470733a2f2f706f7365722e707567782e6f72672f70726979616e6b2f646f637472696e652d6f646d2d61756469742f762f737461626c65)](https://packagist.org/packages/priyank/doctrine-odm-audit)[![Total Downloads](https://camo.githubusercontent.com/f9df1b5f674949666334a8ec6997ef6378b674e56e7ee1c92b6a9b78e40edc9a/68747470733a2f2f706f7365722e707567782e6f72672f70726979616e6b2f646f637472696e652d6f646d2d61756469742f646f776e6c6f616473)](https://packagist.org/packages/priyank/doctrine-odm-audit)[![Latest Unstable Version](https://camo.githubusercontent.com/40252165d5ed5c47b09da7e0e6488425459ce193b79e8ddc247f219461037f0f/68747470733a2f2f706f7365722e707567782e6f72672f70726979616e6b2f646f637472696e652d6f646d2d61756469742f762f756e737461626c65)](https://packagist.org/packages/priyank/doctrine-odm-audit)[![License](https://camo.githubusercontent.com/ff2045026c6b0e5605145680d1d5381aded765151ba36baff4d362d33653c5ee/68747470733a2f2f706f7365722e707567782e6f72672f70726979616e6b2f646f637472696e652d6f646d2d61756469742f6c6963656e7365)](https://packagist.org/packages/priyank/doctrine-odm-audit)[![composer.lock](https://camo.githubusercontent.com/129c6d81448f9a4b5ab5d084b6d5d827d4accad83dc4ec7530cbe55d4072a0dd/68747470733a2f2f706f7365722e707567782e6f72672f70726979616e6b2f646f637472696e652d6f646d2d61756469742f636f6d706f7365726c6f636b)](https://packagist.org/packages/priyank/doctrine-odm-audit)

Basic useful feature list:

- To Store New/old value as audit in database on flush event of ODM Doctrine

You need to implement IAuditHandler interface. Provide this Implemented class object as parameter of constructor.

```
class OdmEventManager implements IAuditHandler{
public function getPersistantRevisionObject(RevisionInfo $revisionInfo){
$revisionDoc = new RevisionDoc();
//Store revision info details into revision document
//Here you can store other details like action user infromatino in Revision document
return $revisionDoc;
}
public function getNamespaceOfDoctrineObject(){
return "Doctrine\Document";
}
public function isDeleteEventAuditEnabled()
    {
        return true;
    }

    public function isInsertEventAuditEnabled()
    {
        return true;
    }

    public function isRequireToStoreAudit($obj)
    {
        return ($obj instanceof UserDocument);
    }

    public function isUpdateEventAuditEnabled()
    {
        return true;
    }

    public function isUpsertEventAuditEnabled()
    {
        return true;
    }
```

```
$odmAuditEventManager = new OdmAuditEventManager(new OdmEventManager());
$eventManager               = new EventManager();
$eventManager->addEventListener([Events::onFlush], $odmAuditEventManager);
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% 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 ~114 days

Recently: every ~200 days

Total

8

Last Release

2646d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/635239?v=4)[Priyank Patel](/maintainers/priyank780)[@priyank780](https://github.com/priyank780)

---

Top Contributors

[![priyank780](https://avatars.githubusercontent.com/u/635239?v=4)](https://github.com/priyank780 "priyank780 (14 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")

---

Tags

auditodm-doctrinedoctrineodmAudit

### Embed Badge

![Health badge](/badges/priyank-doctrine-odm-audit/health.svg)

```
[![Health](https://phpackages.com/badges/priyank-doctrine-odm-audit/health.svg)](https://phpackages.com/packages/priyank-doctrine-odm-audit)
```

###  Alternatives

[gedmo/doctrine-extensions

Doctrine behavioral extensions

4.1k122.6M412](/packages/gedmo-doctrine-extensions)[doctrine/doctrine-mongo-odm-module

Laminas Module which provides Doctrine MongoDB ODM functionality

82685.4k35](/packages/doctrine-doctrine-mongo-odm-module)[neutron/mongo-odm-silex-provider

MongoODM Silex service provider

3515.8k](/packages/neutron-mongo-odm-silex-provider)

PHPackages © 2026

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