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(2y ago)05MITPHPPHP &gt;=7.2.5

Since Apr 27Pushed 2y 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 today

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 12% 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

1056d 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

44917.5M146](/packages/sonata-project-doctrine-orm-admin-bundle)[omines/datatables-bundle

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

2841.4M6](/packages/omines-datatables-bundle)[data-dog/audit-bundle

Audit bundle for symfony2 and doctrine orm, logs any database change

141881.8k1](/packages/data-dog-audit-bundle)[onurb/doctrine-yuml-bundle

Symfony Bundle to visualize the mapping of your entities with Yuml

4198.3k](/packages/onurb-doctrine-yuml-bundle)[spiriitlabs/form-filter-bundle

This bundle aim to provide classes to build some form filters and then build a doctrine query from this form filter.

35438.3k6](/packages/spiriitlabs-form-filter-bundle)

PHPackages © 2026

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