PHPackages                             tejadong/auditor - 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. tejadong/auditor

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

tejadong/auditor
================

The missing audit log library.

2.4.9(2y ago)0181MITPHPPHP &gt;=7.4

Since Dec 6Pushed 2y agoCompare

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

READMEChangelog (1)Dependencies (10)Versions (34)Used By (1)

auditor [![Tweet](https://camo.githubusercontent.com/cb820a0ecc9645168e33b03925d7f14691262ddbaeaf66a0a91697803d0cba2d/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f687474702f736869656c64732e696f2e7376673f7374796c653d736f6369616c)](https://twitter.com/intent/tweet?text=auditor,%20the%20missing%20audit%20log%20library.&url=https://github.com/tejadong/auditor&hashtags=auditor)
================================================================================================================================================================================================================================================================================================================================================================================================================

[](#auditor-)

[![Latest Stable Version](https://camo.githubusercontent.com/a7dad24f21927a83c2f84386475a4062dc26902f5faa92cd2534ca1fc0b6e96b/68747470733a2f2f706f7365722e707567782e6f72672f74656a61646f6e672f61756469746f722f762f737461626c65)](https://packagist.org/packages/tejadong/auditor)[![Latest Unstable Version](https://camo.githubusercontent.com/479ed1a0c528e115356b8c268779f830df73cfb66045a9a5caa75b897f5ff6cd/68747470733a2f2f706f7365722e707567782e6f72672f74656a61646f6e672f61756469746f722f762f756e737461626c65)](https://packagist.org/packages/tejadong/auditor)[![auditor 2.x CI](https://github.com/tejadong/auditor/actions/workflows/ci-2.x.yml/badge.svg)](https://github.com/tejadong/auditor/actions/workflows/ci-2.x.yml)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f438e91c402743ea564c4defa0184d0ecee9a02c7f95e9b7530f9f0bd6dab85d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74656a61646f6e672f61756469746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tejadong/auditor/?branch=master)[![codecov](https://camo.githubusercontent.com/678ba377e3e5779669c4492fcfeed4b32fec6f6a8bac3d8c4cea0b6fce034ebe/68747470733a2f2f636f6465636f762e696f2f67682f74656a61646f6e672f61756469746f722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://app.codecov.io/gh/tejadong/auditor/branch/master)[![License](https://camo.githubusercontent.com/22ec274b958c5fe72ce70d7eb35d7f16a47c5921051c1a4c21e1b7aff83dca12/68747470733a2f2f706f7365722e707567782e6f72672f74656a61646f6e672f61756469746f722f6c6963656e7365)](https://packagist.org/packages/tejadong/auditor)[![Total Downloads](https://camo.githubusercontent.com/7e03d2a2939097a565d817b2cfcffd10872336647b8a3dceb25c75260507665e/68747470733a2f2f706f7365722e707567782e6f72672f74656a61646f6e672f61756469746f722f646f776e6c6f616473)](https://packagist.org/packages/tejadong/auditor)[![Monthly Downloads](https://camo.githubusercontent.com/4d42592ed0d6e4adefa7af8bac63356ab7a63c8186d9c51d7c4c020e02037baa/68747470733a2f2f706f7365722e707567782e6f72672f74656a61646f6e672f61756469746f722f642f6d6f6e74686c79)](https://packagist.org/packages/tejadong/auditor)[![Daily Downloads](https://camo.githubusercontent.com/fdba17180add13c9d1e78182aba5fbe46489f64d89a53e7bd63874650da4c9ca/68747470733a2f2f706f7365722e707567782e6f72672f74656a61646f6e672f61756469746f722f642f6461696c79)](https://packagist.org/packages/tejadong/auditor)

The purpose of `auditor` is to provide an easy and standardized way to collect audit logs.

Architecture
------------

[](#architecture)

This library is architected around two concepts:

- Auditing services responsible for collecting audit events
- Storage services responsible for persisting audit traces

Those two kind of services are offered by Providers.

Default provider
----------------

[](#default-provider)

A default provider is included with this library: the `DoctrineProvider`

`DoctrineProvider` offers both auditing services and sorage services. It creates audit logs for all `Doctrine ORM` database related changes:

- inserts and updates including their diffs and relation field diffs.
- many to many relation changes, association and dissociation actions.
- if available, the user responsible for these changes and his IP address are recorded.
- audit entries are inserted within the same transaction during **flush** event so that even if something fails the global state remains clean.

`DoctrineProvider` supports following RDBMS

- MySQL
- MariaDB
- PostgreSQL
- SQLite

`DoctrineProvider` should work with **any other** database supported by `Doctrine`. Though, we can only really support the ones we can test with [GitHub Actions](https://github.com/features/actions).

Basically you can track any change of any entity from audit logs.

**NOTE:** `DoctrineProvider` cannot track DQL or direct SQL statements executions.

Official Documentation
----------------------

[](#official-documentation)

`auditor` official documentation can be found [here](https://tejadong.github.io/auditor-docs/).

Version Information
-------------------

[](#version-information)

VersionStatusRequirementsBadges3.xActive development 🚀 (Not yet released)PHP &gt;= 8.0, Symfony &gt;= 5.4[![auditor 3.x CI](https://github.com/tejadong/auditor/actions/workflows/ci-3.x.yml/badge.svg)](https://github.com/tejadong/auditor/actions/workflows/ci-3.x.yml)
[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f438e91c402743ea564c4defa0184d0ecee9a02c7f95e9b7530f9f0bd6dab85d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74656a61646f6e672f61756469746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tejadong/auditor/?branch=master)
[![codecov](https://camo.githubusercontent.com/678ba377e3e5779669c4492fcfeed4b32fec6f6a8bac3d8c4cea0b6fce034ebe/68747470733a2f2f636f6465636f762e696f2f67682f74656a61646f6e672f61756469746f722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://app.codecov.io/gh/tejadong/auditor/branch/master)2.xActive supportPHP &gt;= 7.4, Symfony &gt;= 4.4[![auditor 2.x CI](https://github.com/tejadong/auditor/actions/workflows/ci-2.x.yml/badge.svg)](https://github.com/tejadong/auditor/actions/workflows/ci-2.x.yml)
[![Scrutinizer Code Quality](https://camo.githubusercontent.com/113359beaa844aec62ca6305cbe55da2ede0223ba896cac7179dd073f5be7aeb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74656a61646f6e672f61756469746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d322e78)](https://scrutinizer-ci.com/g/tejadong/auditor/?branch=2.x)
[![codecov](https://camo.githubusercontent.com/678ba377e3e5779669c4492fcfeed4b32fec6f6a8bac3d8c4cea0b6fce034ebe/68747470733a2f2f636f6465636f762e696f2f67682f74656a61646f6e672f61756469746f722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://app.codecov.io/gh/tejadong/auditor/branch/2.x)1.xEOLPHP &gt;= 7.2, Symfony &gt;= 3.4[![auditor 1.x CI](https://github.com/tejadong/auditor/actions/workflows/ci-1.x.yml/badge.svg)](https://github.com/tejadong/auditor/actions/workflows/ci-1.x.yml)
[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c463ca96de7ccde32e3754af4386714b509a0eab182a69c3f7e1a775452f1644/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74656a61646f6e672f61756469746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d312e78)](https://scrutinizer-ci.com/g/tejadong/auditor/?branch=1.x)
[![codecov](https://camo.githubusercontent.com/6f6d07fda05af56fafc31840d2d1cc044d8610c96fed019186064b7da40bd01e/68747470733a2f2f636f6465636f762e696f2f67682f74656a61646f6e672f61756469746f722f6272616e63682f312e782f67726170682f62616467652e737667)](https://app.codecov.io/gh/tejadong/auditor/branch/1.x)Changelog is available [here](https://tejadong.github.io/auditor-docs/docs/auditor/release-notes.html)

Contributing
------------

[](#contributing)

`auditor` is an open source project. Contributions made by the community are welcome. Send us your ideas, code reviews, pull requests and feature requests to help us improve this project.

Do not forget to provide unit tests when contributing to this project. To do so, follow instructions in this dedicated [README](tests/README.md)

Credits
-------

[](#credits)

- Thanks to [all contributors](https://github.com/tejadong/auditor/graphs/contributors)
- This library initially took some inspiration from [data-dog/audit-bundle](https://github.com/DATA-DOG/DataDogAuditBundle.git) and [simplethings/entity-audit-bundle](https://github.com/simplethings/EntityAuditBundle.git)
- Special thanks to [JetBrains](https://www.jetbrains.com/?from=auditor) for their *Licenses for Open Source Development*

License
-------

[](#license)

`auditor` is free to use and is licensed under the [MIT license](http://www.opensource.org/licenses/mit-license.php)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 83.6% 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 ~38 days

Recently: every ~101 days

Total

33

Last Release

760d ago

Major Versions

1.x-dev → 2.0.02022-03-05

PHP version history (2 changes)1.0.0PHP &gt;=7.2

2.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/48ff2e667116917951dbd470dedd17a6946b2eb68dc22cb1580f6a47f9169d39?d=identicon)[tejadong](/maintainers/tejadong)

---

Top Contributors

[![DamienHarper](https://avatars.githubusercontent.com/u/2448660?v=4)](https://github.com/DamienHarper "DamienHarper (225 commits)")[![dmitryuk](https://avatars.githubusercontent.com/u/661654?v=4)](https://github.com/dmitryuk "dmitryuk (16 commits)")[![joerndyherrn](https://avatars.githubusercontent.com/u/5102468?v=4)](https://github.com/joerndyherrn "joerndyherrn (4 commits)")[![samuel4x4](https://avatars.githubusercontent.com/u/3427855?v=4)](https://github.com/samuel4x4 "samuel4x4 (3 commits)")[![yivi](https://avatars.githubusercontent.com/u/1815039?v=4)](https://github.com/yivi "yivi (2 commits)")[![janklan](https://avatars.githubusercontent.com/u/5463371?v=4)](https://github.com/janklan "janklan (2 commits)")[![martijnboers](https://avatars.githubusercontent.com/u/2955898?v=4)](https://github.com/martijnboers "martijnboers (2 commits)")[![noisesfromspace](https://avatars.githubusercontent.com/u/2955898?v=4)](https://github.com/noisesfromspace "noisesfromspace (2 commits)")[![oleg-andreyev](https://avatars.githubusercontent.com/u/1244112?v=4)](https://github.com/oleg-andreyev "oleg-andreyev (2 commits)")[![tejadong](https://avatars.githubusercontent.com/u/22294570?v=4)](https://github.com/tejadong "tejadong (2 commits)")[![Metabor](https://avatars.githubusercontent.com/u/2135064?v=4)](https://github.com/Metabor "Metabor (1 commits)")[![andrew-demb](https://avatars.githubusercontent.com/u/12499813?v=4)](https://github.com/andrew-demb "andrew-demb (1 commits)")[![vindert](https://avatars.githubusercontent.com/u/17656771?v=4)](https://github.com/vindert "vindert (1 commits)")[![robier](https://avatars.githubusercontent.com/u/3607521?v=4)](https://github.com/robier "robier (1 commits)")[![dbannik](https://avatars.githubusercontent.com/u/16108701?v=4)](https://github.com/dbannik "dbannik (1 commits)")[![djpremier](https://avatars.githubusercontent.com/u/17091381?v=4)](https://github.com/djpremier "djpremier (1 commits)")[![knallcharge](https://avatars.githubusercontent.com/u/1715912?v=4)](https://github.com/knallcharge "knallcharge (1 commits)")[![Marmelatze](https://avatars.githubusercontent.com/u/199681?v=4)](https://github.com/Marmelatze "Marmelatze (1 commits)")[![SanderVerkuil](https://avatars.githubusercontent.com/u/7080527?v=4)](https://github.com/SanderVerkuil "SanderVerkuil (1 commits)")

---

Tags

doctrineAuditaudit-trailaudit-log

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tejadong-auditor/health.svg)

```
[![Health](https://phpackages.com/badges/tejadong-auditor/health.svg)](https://phpackages.com/packages/tejadong-auditor)
```

###  Alternatives

[damienharper/auditor

The missing audit log library.

1922.8M8](/packages/damienharper-auditor)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

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

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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