PHPackages                             qoliber/m2-mediacleaner - 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. qoliber/m2-mediacleaner

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

qoliber/m2-mediacleaner
=======================

1.0.4(11mo ago)2311—0%2MITPHP

Since Feb 13Pushed 3mo agoCompare

[ Source](https://github.com/qoliber/m2-mediacleaner)[ Packagist](https://packagist.org/packages/qoliber/m2-mediacleaner)[ RSS](/packages/qoliber-m2-mediacleaner/feed)WikiDiscussions main Synced 1mo ago

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

Media Cleaner
-------------

[](#media-cleaner)

A Magento module for cleaning up media files.

### Installation

[](#installation)

Installation is via `composer`

```
composer require qoliber/m2-mediacleaner

```

After installing the package, run the following command:

```
php bin/magento setup:upgrade

```

### Usage

[](#usage)

To use this module, simply enable it in the Magento configuration (`Qoliber > Media Cleaner`) and set the desired cleaning options. The module will then run automatically according to the configured cron expression.

#### Cleaning command

[](#cleaning-command)

> php bin/magento qoliber:media:clean

#### Dry run mode

[](#dry-run-mode)

If you want to test the cleaning process without actually deleting the files, you can set the `--dry-run` option in the command:

> php bin/magento qoliber:media:clean --dry-run

### Adding cleaners

[](#adding-cleaners)

All cleaner classes must implement the `Qoliber\MediaCleaner\Api\Cleaner\CleanerInterface` interface.

You can add a custom cleaner by modifying `di.xml`:

```

                Foo\Bar\Cleaner\CustomCleaner

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance68

Regular maintenance activity

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~25 days

Total

5

Last Release

349d ago

### Community

Maintainers

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

---

Top Contributors

[![lowczarczuk](https://avatars.githubusercontent.com/u/190525316?v=4)](https://github.com/lowczarczuk "lowczarczuk (5 commits)")[![jakwinkler](https://avatars.githubusercontent.com/u/4256191?v=4)](https://github.com/jakwinkler "jakwinkler (1 commits)")

### Embed Badge

![Health badge](/badges/qoliber-m2-mediacleaner/health.svg)

```
[![Health](https://phpackages.com/badges/qoliber-m2-mediacleaner/health.svg)](https://phpackages.com/packages/qoliber-m2-mediacleaner)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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