PHPackages                             heimrichhannot/contao-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. [File &amp; Storage](/categories/file-storage)
4. /
5. heimrichhannot/contao-cleaner-bundle

ActiveContao-bundle[File &amp; Storage](/categories/file-storage)

heimrichhannot/contao-cleaner-bundle
====================================

This bundle adds cleaner functionality for periodically removing arbitrary entities and/or files fulfilling a certain condition in Contao (using TL\_CRON or your server's cron).

3.3.0(3mo ago)13.1k↓40.7%1LGPL-3.0-or-laterPHPPHP ^8.1

Since Mar 7Pushed 3mo ago5 watchersCompare

[ Source](https://github.com/heimrichhannot/contao-cleaner-bundle)[ Packagist](https://packagist.org/packages/heimrichhannot/contao-cleaner-bundle)[ Docs](https://github.com/heimrichhannot/contao-cleaner-bundle)[ RSS](/packages/heimrichhannot-contao-cleaner-bundle/feed)WikiDiscussions v3 Synced 3w ago

READMEChangelog (9)Dependencies (12)Versions (34)Used By (0)

[![](https://camo.githubusercontent.com/74772ad31d7350baea1dfa98b31457e95b5dc2f7445b79becb7d1b0d6a0a9a9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6865696d7269636868616e6e6f742f636f6e74616f2d636c65616e65722d62756e646c652e737667)](https://camo.githubusercontent.com/74772ad31d7350baea1dfa98b31457e95b5dc2f7445b79becb7d1b0d6a0a9a9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6865696d7269636868616e6e6f742f636f6e74616f2d636c65616e65722d62756e646c652e737667)[![](https://camo.githubusercontent.com/3c6f47fc0ce16054dc30ad6628105818f59ec84fa327c01e4b1cf6ec3cf0deef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6865696d7269636868616e6e6f742f636f6e74616f2d636c65616e65722d62756e646c652e737667)](https://camo.githubusercontent.com/3c6f47fc0ce16054dc30ad6628105818f59ec84fa327c01e4b1cf6ec3cf0deef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6865696d7269636868616e6e6f742f636f6e74616f2d636c65616e65722d62756e646c652e737667)[![](https://camo.githubusercontent.com/488cf33f6ddcd7821d37e01c6af15f978dfd3726e121d801b369c68b7c724afb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6865696d7269636868616e6e6f742f636f6e74616f2d636c65616e65722d62756e646c652f6d61737465722e737667)](https://travis-ci.org/heimrichhannot/contao-cleaner-bundle/)[![](https://camo.githubusercontent.com/af6f80f4b71bb838769e1865e29bd5120ab5f36381f18b3799f527af81160247/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6865696d7269636868616e6e6f742f636f6e74616f2d636c65616e65722d62756e646c652f6d61737465722e737667)](https://coveralls.io/github/heimrichhannot/contao-cleaner-bundle)

Cleaner Bundle
==============

[](#cleaner-bundle)

This bundle adds cleaner functionality for periodically removing arbitrary entities and/or files fulfilling a certain condition (using poor man's cron or your server's cron).

[![alt Archive](docs/screenshot.png)](docs/screenshot.png)

*Cleaner configuration*

Install
-------

[](#install)

1. Install via composer (`composer require heimrichhannot/contao-cleaner-bundle`) or contao manager
2. Update your database

Events
------

[](#events)

EventClassDescriptionhuh.cleaner.event.before\_cleanBeforeCleanEventRun before the entity is cleaned. Use `setSkipped()` to skip the cleaning of the passed in entity.huh.cleaner.event.after\_cleanAfterCleanEventRun after the entity is cleaned.

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance80

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~91 days

Total

33

Last Release

103d ago

Major Versions

1.0.1 → 2.0.02018-03-12

v2.x-dev → 3.0.02024-05-03

PHP version history (4 changes)1.0.0PHP ^7.1

2.6.3PHP ^7.1|^8.0

3.0.0PHP ^7.4 || ^8.0

3.3.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/28ad3224d8727b622ebd229840eea6b9dbcb83eb0bd609e6ce65b614830ff538?d=identicon)[digitales@heimrich-hannot.de](/maintainers/digitales@heimrich-hannot.de)

---

Top Contributors

[![ericges](https://avatars.githubusercontent.com/u/25957923?v=4)](https://github.com/ericges "ericges (17 commits)")[![koertho](https://avatars.githubusercontent.com/u/12064642?v=4)](https://github.com/koertho "koertho (15 commits)")[![Defcon0](https://avatars.githubusercontent.com/u/1485098?v=4)](https://github.com/Defcon0 "Defcon0 (1 commits)")[![K0NZ1](https://avatars.githubusercontent.com/u/16319351?v=4)](https://github.com/K0NZ1 "K0NZ1 (1 commits)")[![vvohh](https://avatars.githubusercontent.com/u/75325799?v=4)](https://github.com/vvohh "vvohh (1 commits)")

---

Tags

bundlefileentitycontaodevelopercleaner

###  Code Quality

Static AnalysisPHPStan, Rector

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/heimrichhannot-contao-cleaner-bundle/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M396](/packages/drupal-core-recommended)[metamodels/core

MetaModels core

9956.1k68](/packages/metamodels-core)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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