PHPackages                             landofcoder/module-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. landofcoder/module-cleanup

ActiveMagento2-module

landofcoder/module-cleanup
==========================

The module archives and removes old files.

1.0.1(3y ago)111MITPHP

Since Dec 12Pushed 3y agoCompare

[ Source](https://github.com/landofcoder/module-magento2-cleanup)[ Packagist](https://packagist.org/packages/landofcoder/module-cleanup)[ RSS](/packages/landofcoder-module-cleanup/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

module-magento2-cleanup
=======================

[](#module-magento2-cleanup)

The module archives and removes old entities. It supports log files, unused product images and quotes.

### What it does

[](#what-it-does)

For files it basically replaces logrotate. It archives and compresses log files and cleans up the archive folder after a configurable period. For product images it finds unreferenced files in media/catalog/product and moves them to a recycle bin which gets purged after a configurable period. For quotes it simply removes customer and guest quotes after a configurable period.

### How it works

[](#how-it-works)

The module provides a cron job and a shell command to execute the cleanup jobs. Those jobs are implemented as "handlers" which clean up a specific entity. The set of bundled handlers can be easily extended by custom handlers via di.xml. A resolver will then expose configured handlers to the cron job and the shell command which then can execute the cleanup without additional configuration.

New handlers need to implement the HandlerInterface and be registerdto the handlerPool using di.xml.

### How to use

[](#how-to-use)

1. Install the module via Composer:

```
composer require landofcoder/module-cleanup

```

2. Enable it `bin/magento module:enable Lof_Cleanup`
3. Install the module and rebuild the DI cache `bin/magento setup:upgrade`
4. Run all clean up via command `bin/magento lof:cleanup:run`
5. Run clean up unused product images `bin/magento lof:cleanup:clean-images`

### How to configure

[](#how-to-configure)

Find the modules configuration in the Landofcoder section of your Magento configuration.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

1249d ago

### Community

Maintainers

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

---

Top Contributors

[![landofcoder](https://avatars.githubusercontent.com/u/194975?v=4)](https://github.com/landofcoder "landofcoder (5 commits)")

### Embed Badge

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

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

PHPackages © 2026

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