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 3w 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

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

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

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1155.2k](/packages/rcsofttech-audit-trail-bundle)[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

44918.0M166](/packages/sonata-project-doctrine-orm-admin-bundle)[omines/datatables-bundle

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

2841.5M6](/packages/omines-datatables-bundle)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

939.0k](/packages/ahmed-bhs-doctrine-doctor)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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