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

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

benmacha/audit-bundle
=====================

A comprehensive Symfony bundle for auditing entity changes with rollback functionality, web interface, and REST API

0.1.0(10mo ago)42[5 PRs](https://github.com/BenMacha/audit-bundle/pulls)MITPHPPHP &gt;=7.4CI passing

Since Aug 27Pushed 6mo agoCompare

[ Source](https://github.com/BenMacha/audit-bundle)[ Packagist](https://packagist.org/packages/benmacha/audit-bundle)[ Docs](https://github.com/benmacha/audit-bundle)[ GitHub Sponsors](https://github.com/sponsors/benmacha)[ RSS](/packages/benmacha-audit-bundle/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (35)Versions (10)Used By (0)

Symfony Audit Bundle v0.1.0
===========================

[](#symfony-audit-bundle-v010)

[![CI](https://github.com/benmacha/audit-bundle/workflows/CI/badge.svg)](https://github.com/benmacha/audit-bundle/actions)[![Coverage Status](https://camo.githubusercontent.com/4166819cd12073c889b8f2b98393ac737968ab25b40041c9ef599176c95b2e06/68747470733a2f2f636f6465636f762e696f2f67682f62656e6d616368612f61756469742d62756e646c652f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/benmacha/audit-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/c1f20fa2584093b71d60be0419653033385dc0845ca6d417b22e57633623128f/68747470733a2f2f706f7365722e707567782e6f72672f62656e6d616368612f61756469742d62756e646c652f762f737461626c65)](https://packagist.org/packages/benmacha/audit-bundle)[![Total Downloads](https://camo.githubusercontent.com/45f62060ae7f72dbf2b021ba66a0307b47fa123fa2171bd264fc276138186c67/68747470733a2f2f706f7365722e707567782e6f72672f62656e6d616368612f61756469742d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/benmacha/audit-bundle)[![License](https://camo.githubusercontent.com/db9e75567c5c80206e247bb6a7d0a3eea9bc75d80ee44db81fab37f219a62013/68747470733a2f2f706f7365722e707567782e6f72672f62656e6d616368612f61756469742d62756e646c652f6c6963656e7365)](https://packagist.org/packages/benmacha/audit-bundle)

A comprehensive Symfony bundle for auditing entity changes with rollback functionality, web interface, and REST API. Now with Symfony Flex auto-configuration support!

Features
--------

[](#features)

- 🔍 **Automatic Entity Tracking**: Track changes to any Doctrine entity
- 🔄 **Rollback Functionality**: Restore entities to previous states
- 🎯 **Flexible Configuration**: Fine-grained control over what gets audited
- 🌐 **Web Interface**: User-friendly web UI for viewing audit logs
- 🚀 **REST API**: Complete API for programmatic access
- 🔒 **Security Integration**: Role-based access control
- 📊 **Performance Optimized**: Asynchronous processing support
- 🎨 **Customizable**: Extensible architecture with events
- 📱 **Responsive Design**: Mobile-friendly interface
- 🔧 **Developer Tools**: Comprehensive debugging and monitoring

Requirements
------------

[](#requirements)

- PHP 7.4 - 8.4
- Symfony 5.4 - 7.x
- Doctrine ORM 2.10+
- MySQL 5.7+ / PostgreSQL 10+ / SQLite 3.25+

Installation
------------

[](#installation)

### With Symfony Flex (Recommended)

[](#with-symfony-flex-recommended)

```
composer require benmacha/audit-bundle
```

Symfony Flex will automatically:

- Register the bundle in `config/bundles.php`
- Create default configuration in `config/packages/audit.yaml`
- Set up routing in `config/routes/audit.yaml`
- Configure services for auto-wiring

### Manual Installation

[](#manual-installation)

If you're not using Symfony Flex:

```
composer require benmacha/audit-bundle
```

Then manually register the bundle in `config/bundles.php`:

```
return [
    // ...
    BenMacha\AuditBundle\AuditBundle::class => ['all' => true],
];
```

### Step 1: Install the Bundle

[](#step-1-install-the-bundle)

```
composer require benmacha/audit-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Add the bundle to your `config/bundles.php`:

```
