PHPackages                             dante/log-cleaner - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. dante/log-cleaner

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

dante/log-cleaner
=================

Remove logs older than given date

1.0.0(2y ago)02GPL-3.0PHP

Since Jan 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Dante383/php-log-cleaner)[ Packagist](https://packagist.org/packages/dante/log-cleaner)[ RSS](/packages/dante-log-cleaner/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Log Cleaner
===========

[](#log-cleaner)

[![assets/log_cleaner.png](assets/log_cleaner.png)](assets/log_cleaner.png)

Installation
------------

[](#installation)

`composer require dante/log-cleaner`

Usage
-----

[](#usage)

`./vendor/dante/log-cleaner --source {source} {older-than}`

- {source} - "database" or "file"

Logs will be loaded from `foobar.log`, where I included some example logs. All of them but one are older than 2022-01-01, so that could be a good example.

- {older-than} - date in YYYY-MM-DD format

Log format
----------

[](#log-format)

In order to be properly parsed, logs have to follow this format:

`YYYY-MM-DD: {text}`

Testing
-------

[](#testing)

`./vendor/bin/phpunit tests`

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

906d ago

### Community

Maintainers

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

---

Top Contributors

[![Dante383](https://avatars.githubusercontent.com/u/6324139?v=4)](https://github.com/Dante383 "Dante383 (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dante-log-cleaner/health.svg)

```
[![Health](https://phpackages.com/badges/dante-log-cleaner/health.svg)](https://phpackages.com/packages/dante-log-cleaner)
```

###  Alternatives

[spatie/laravel-flare

Send Laravel errors to Flare

111.4M7](/packages/spatie-laravel-flare)

PHPackages © 2026

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