PHPackages                             tourze/doctrine-user-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. tourze/doctrine-user-bundle

ActiveLibrary

tourze/doctrine-user-bundle
===========================

A Symfony Bundle for automatically tracking entity creators and updaters

1.0.1(6mo ago)031.5k20MITPHPCI passing

Since Mar 27Pushed 4mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (24)Versions (12)Used By (20)

Doctrine User Bundle
====================

[](#doctrine-user-bundle)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/236f50f6fe972b4726e8904e32f80ab067dd265b0b03ae5ce9f0b892606d0187/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f646f637472696e652d757365722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/doctrine-user-bundle)[![Total Downloads](https://camo.githubusercontent.com/fae9b3382c24325aa0ded8d1d00749171ecf5fdae0e00ba0ebc94267d121c699/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f646f637472696e652d757365722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/doctrine-user-bundle)[![PHP Version Require](https://camo.githubusercontent.com/0c7baa3af4aa0fe5c08e430be9f4eafb01b74e0d2c3422858124c0be8f7753c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f646f637472696e652d757365722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/doctrine-user-bundle)[![Code Coverage](https://camo.githubusercontent.com/b5af7f3b435f07392ae8b4118803bfd63f3f6e2d9c1f0d557018cff0e7f986dc/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f746f75727a652f646f637472696e652d757365722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/tourze/doctrine-user-bundle)[![License](https://camo.githubusercontent.com/fb2f62804c9e99c6dd42b676b63ea97c898a1ab5ed4c39c7db0a961e3abb68ce/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f75727a652f646f637472696e652d757365722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

A Symfony Bundle for automatically tracking entity creators and updaters.

Features
--------

[](#features)

- Automatically track entity creators and updaters
- Simple integration using PHP 8 Attributes
- Works with Symfony Security component
- No database schema modifications required
- Compatible with Symfony 7.3+ applications
- Zero configuration required

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

[](#installation)

Install this package via Composer:

```
composer require tourze/doctrine-user-bundle
```

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

[](#requirements)

- PHP 8.1+
- Symfony 7.3+
- Doctrine ORM

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

In your entity classes, use the `CreateUserColumn` and `UpdateUserColumn` attributes to mark user fields:

```
