PHPackages                             d3nysm/stats-tables-cleaner-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. d3nysm/stats-tables-cleaner-bundle

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

d3nysm/stats-tables-cleaner-bundle
==================================

Cleans old entries from database stats tables

1.0.3(3y ago)05MITPHPPHP &gt;=7.2.5

Since Apr 27Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (3)Used By (0)

The StatsTablesCleanerBundle
============================

[](#the-statstablescleanerbundle)

This bundle helps with cleaning tables with statistics, logs, etc. The necessary thing is an entity must have date or datetime column.

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

[](#installation)

```
$ composer require d3nysm/stats-tables-cleaner-bundle
```

Quick Start
-----------

[](#quick-start)

1. Add the notation to your entity:

    ```
    use App\Repository\StatsEntryRepository;
    use Doctrine\ORM\Mapping as ORM;
    use D3nysm\Bundle\StatsTablesCleaner\Annotation\CleanOldData;

    /**
     * @ORM\Entity(repositoryClass=StatsEntryRepository::class)
     * @ORM\Table(indexes={
     *     @ORM\Index(name="stat_date", columns={"date"})})
     * @CleanOldData(interval="-3 month")
    */
    class StatsEntry
    ```

    Full settings of the annotation:

    ```
    /**
     * @DeleteOldData(dateProp="createdAt", interval="-1 month", batchSize=500, eventName="app.my_best_event")
    */
    ```
2. Run the command and add to you scheduler system:

    ```
    $ php bin/console stats-tables-cleaner:clean
    ```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

Every ~4 days

Total

2

Last Release

1106d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/761a1e5c8b9b54e9e85e81ce57c44d1a7fff3acf2d3ca56f8a3212b2a52d20f1?d=identicon)[d3nysm](/maintainers/d3nysm)

---

Top Contributors

[![d3nysm](https://avatars.githubusercontent.com/u/131945723?v=4)](https://github.com/d3nysm "d3nysm (10 commits)")

---

Tags

symfonybundleormdoctrine

### Embed Badge

![Health badge](/badges/d3nysm-stats-tables-cleaner-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/d3nysm-stats-tables-cleaner-bundle/health.svg)](https://phpackages.com/packages/d3nysm-stats-tables-cleaner-bundle)
```

###  Alternatives

[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M155](/packages/sonata-project-doctrine-orm-admin-bundle)[omines/datatables-bundle

Symfony DataTables Bundle with native Doctrine ORM, Elastica and MongoDB support

2851.4M6](/packages/omines-datatables-bundle)[onurb/doctrine-yuml-bundle

Symfony Bundle to visualize the mapping of your entities with Yuml

4198.6k](/packages/onurb-doctrine-yuml-bundle)

PHPackages © 2026

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