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. dante/log-cleaner

ActiveLibrary

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 1mo 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 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

851d 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

[phan/phan

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[php-soap/wsdl-reader

A WSDL reader in PHP

212.3M9](/packages/php-soap-wsdl-reader)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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