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

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

tmajka/log-cleaner
==================

Mini app to delete logs

1.0.0(2y ago)04MITPHPPHP &gt;=8.2

Since Jan 14Pushed 2y ago1 watchersCompare

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

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

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

[](#log-cleaner)

Small program that analyzing logs and removing records older than given time period

 [![](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)

Installation details
--------------------

[](#installation-details)

#### Install by composer

[](#install-by-composer)

```
composer require tmajka/log-cleaner
composer install

```

#### Info

[](#info)

- Before run, set path to log file in *log-cleaner/etc/env.php*
- We assume that the timestamp appears at the beginning of each line in the log file and is compliant with ISO 8601, as recommended by RFC 5424 for Syslog.

```
[2023-01-14T15:30:45.123456+02:00]

```

Command to run
--------------

[](#command-to-run)

```
php vendor/tmajka/log-cleaner/bin/clean.php

```

### Run with custom config file

[](#run-with-custom-config-file)

```
php vendor/tmajka/log-cleaner/bin/clean.php -configFile=path/to/config/file.php

```

Run Test
--------

[](#run-test)

```
cd vendor/tmajka/log-cleaner

```

```
composer install

```

```
./vendor/bin/phpunit

```

License
-------

[](#license)

[MIT](https://opensource.org/licenses/MIT)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

846d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ed4c98095a884155df0702367a699c532bfddd7ec796c2d481db58a4d112028?d=identicon)[tmajka](/maintainers/tmajka)

---

Top Contributors

[![tmajka](https://avatars.githubusercontent.com/u/79193374?v=4)](https://github.com/tmajka "tmajka (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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