PHPackages                             atournayre/historique-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. atournayre/historique-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

atournayre/historique-bundle
============================

This bundle add History management for entities.

3.3.1(3y ago)01.2k[1 PRs](https://github.com/atournayre/historique-bundle/pulls)MITPHPPHP &gt;=8.1.4

Since Aug 29Pushed 2y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (16)Used By (0)

History Bundle
==============

[](#history-bundle)

This bundle add History management for entities.

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

[](#requirements)

Symfony `^5.4`

PHP `^8.1`

Install
-------

[](#install)

### Composer

[](#composer)

```
composer require atournayre/historique-bundle
```

### Register bundle

[](#register-bundle)

```
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    // ...
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new \Atournayre\Bundle\HistoriqueBundle\HistoriqueBundle(),
            // ...
        );
    }
    // ...
}
```

Configuration
-------------

[](#configuration)

Replace `App\Model\History` by your History entity.

Replace `App\Model\User` by your User entity.

```
# config/packages/doctrine.yaml
doctrine:
  orm:
    resolve_target_entities:
      Atournayre\Bundle\HistoriqueBundle\Interfaces\History: App\Model\History
      Symfony\Component\Security\Core\User\UserInterface: App\Model\User

# config/packages/atournayre_historique.yaml
atournayre_historique:
  history_class: App\Model\History
```

Add **History** entity to your application.

```
