PHPackages                             ruano\_a/reload-annotation-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. ruano\_a/reload-annotation-bundle

ActiveSymfony-bundle

ruano\_a/reload-annotation-bundle
=================================

A Symfony bundle providing a PHPUnit extension reloading the database if an annotation is present on test methods.

1.0.0(5y ago)03MITPHP

Since Aug 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ruano-a/reload-annotation-bundle)[ Packagist](https://packagist.org/packages/ruano_a/reload-annotation-bundle)[ RSS](/packages/ruano-a-reload-annotation-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Most likely obsolete for anyone
===============================

[](#most-likely-obsolete-for-anyone)

 uses rollback, which is faster and better.

ReloadAnnotationBundle
======================

[](#reloadannotationbundle)

A Symfony bundle providing a PHPUnit extension reloading the database if an annotation is present on test methods. It only works with a PHPUnit which version is &gt;= 7.5 .

Configuration
=============

[](#configuration)

```
composer require --dev ruano_a/reload-annotation-bundle

```

Add the bundle in bundles.php:

```
if (in_array($env, ['dev', 'test'])) {
    ...
    if ($env === 'test') {
        $bundles[] = new ruano_a\ReloadAnnotationBundle\ReloadAnnotationBundle();
    }
}
```

Add the extension in your xml config (phpunit.xml)

```

        ...

```

And that's it.

Available annotations
=====================

[](#available-annotations)

- ReloadDatabaseBefore
- ReloadDatabaseAfter

Notes
=====

[](#notes)

This bundle can't work with a PHPUnit version prior to 7.5 because the listener system doesn't seem to let you get the test method informations. It is currently not configurable, I might make it one day, if you don't want to wait, contact me. It has been made for my personal use, but for most common cases, I advise you to use this bundle:  that is much more optimized, but doesn't let you choose when to perform the rollbacks.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2084d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10533308?v=4)[ruano-a](/maintainers/ruano-a)[@ruano-a](https://github.com/ruano-a)

---

Top Contributors

[![ruano-a](https://avatars.githubusercontent.com/u/10533308?v=4)](https://github.com/ruano-a "ruano-a (5 commits)")

### Embed Badge

![Health badge](/badges/ruano-a-reload-annotation-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ruano-a-reload-annotation-bundle/health.svg)](https://phpackages.com/packages/ruano-a-reload-annotation-bundle)
```

PHPackages © 2026

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