PHPackages                             menatwork/cleanup - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. menatwork/cleanup

ActiveContao-module[Utility &amp; Helpers](/categories/utility)

menatwork/cleanup
=================

A general cronjob to cleanup folders and files

1.0.0.beta2(12y ago)172[4 issues](https://github.com/menatwork-ia/cleanup/issues)LGPL-3.0+PHPPHP &gt;=5.3

Since Mar 14Pushed 6y ago6 watchersCompare

[ Source](https://github.com/menatwork-ia/cleanup)[ Packagist](https://packagist.org/packages/menatwork/cleanup)[ Docs](http://www.men-at-work.de)[ RSS](/packages/menatwork-cleanup/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Cleanup Extension
=================

[](#cleanup-extension)

Die CleanUp Extension ist als genereller Cronjob für die Löschung von Dateien gedacht. So können anhand von Konfigurationen bestimmte Ordner und Dateien (wahlweise auch rekursiv) nach einem festgelegten Intervall gelöscht werden. Alle Konfigurationen werden derzeit über eine config.php in einer eigenen Extension oder über die dcaconfig.php von Contao vorgenommen.

The CleanUp extension is intended as a general cronjob for the deletion of files. Therefore configurations may specify files and folders to be deleted (even recursively) after a defined interval. Currently all configuration has to be done via a config.php file within an extension or via the Contao dcaconfig.php.

### Konsole / Console

[](#konsole--console)

```
cd /var/www/contao/system/modules/cleanup
php CleanUpCaller.php

```

### HTTP Aufruf / HTTP Request

[](#http-aufruf--http-request)

Da Contao 3.x sämtliche Ordner in system/modules schützt, ist ein direkter Aufruf ohne Anpassungen (wie z.B. Änderung der .htaccess im Root oder dem Ablegen einer .htaccess in system/modules) nur in Contao 2.11 möglich.

As Contao 3+ protects all subfolders within system/modules, direct requests into there are possible only in Contao 2.11 without adjustments (such as a change in the .htaccess of the root or adding an own .htaccess within a designated folder to be whitelisted).

### Contao Cronjob

[](#contao-cronjob)

Contao bietet die Möglichkeit sich in die systemeigenen Cronjobs zu integrieren. Dafür muss man nur eins der 5 möglichen Beispiele aus der config.example.php in die dcaconfig.php oder in die config.php der eigenen Extension übernehmen und einkommentieren. Der stündliche und minütige Aufruf ist in Contao 2.11 nicht vorhanden.

Contao provides the ability to integrate own requests into the native system cron jobs. Therefore you have to take over one of the following 5 examples from the config.example.php and paste them into the dcaconfig.php or config.php of your own extension. The hourly and minute request is not available in Contao 2.11.

```
$GLOBALS['TL_CRON']['monthly'][]    = array('CleanUp\CleanUp', 'run');
$GLOBALS['TL_CRON']['weekly'][]     = array('CleanUp\CleanUp', 'run');
$GLOBALS['TL_CRON']['daily'][]      = array('CleanUp\CleanUp', 'run');

// Contao 3 only
$GLOBALS['TL_CRON']['hourly'][]     = array('CleanUp\CleanUp', 'run');
$GLOBALS['TL_CRON']['minutely'][]   = array('CleanUp\CleanUp', 'run');
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% 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 ~12 days

Total

3

Last Release

4420d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10211934?v=4)[Chibineko](/maintainers/Chibineko)[@chibineko](https://github.com/chibineko)

![](https://www.gravatar.com/avatar/e0832ff67e7f71c428f5806b454439fb889a0dbd6049bbcb9e0717c15bf7078c?d=identicon)[davidmaack](/maintainers/davidmaack)

---

Top Contributors

[![andreasisaak](https://avatars.githubusercontent.com/u/156767?v=4)](https://github.com/andreasisaak "andreasisaak (7 commits)")[![stefanheimes](https://avatars.githubusercontent.com/u/988286?v=4)](https://github.com/stefanheimes "stefanheimes (3 commits)")

---

Tags

filescleanupcronjob

### Embed Badge

![Health badge](/badges/menatwork-cleanup/health.svg)

```
[![Health](https://phpackages.com/badges/menatwork-cleanup/health.svg)](https://phpackages.com/packages/menatwork-cleanup)
```

###  Alternatives

[lorisleiva/lody

Load files and classes as lazy collections in Laravel.

956.6M9](/packages/lorisleiva-lody)[liebig/cron

Job scheduling for Laravel

455224.3k](/packages/liebig-cron)[phplang/scope-exit

Emulation of SCOPE\_EXIT construct from C++

1912.4M4](/packages/phplang-scope-exit)[wapmorgan/file-type-detector

Detects file type by filename or content and generates correct mimetype.

35367.8k2](/packages/wapmorgan-file-type-detector)[liborm85/composer-vendor-cleaner

Composer Vendor Cleaner removes unnecessary development files and directories from vendor directory.

35342.7k1](/packages/liborm85-composer-vendor-cleaner)[colinodell/indentation

Library to detect and manipulate indentation in strings and files

3911.5k5](/packages/colinodell-indentation)

PHPackages © 2026

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