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

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

camilwojcik/logs-cleanup
========================

Simple package with class that clears logs older than given date (in text format). Recomended use in your Cron.php file.

00PHP

Since Jul 26Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

logs-cleanup
============

[](#logs-cleanup)

Simple package with class that clears logs older than given date (in text format). Recomended use in your **Cron.php** file.

Task description:
-----------------

[](#task-description)

### Given:

[](#given)

- We have an app that stores different types of informations in logs
- These logs can be stored in a database or text file depending on our needs
- For this task please focus on one implementation having in mind that other option is also viable

### Task:

[](#task)

- Make a small program that will be analysing logs and removing records older than given time period
- We should be able to use this program as a composer dependency
- Prepare a test that will demonstrate how your program works

### Remarks:

[](#remarks)

- This program does not have to be 100% finished or give us all concrete implementations
- All tests should run and pass green

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![camilwojcik](https://avatars.githubusercontent.com/u/59473659?v=4)](https://github.com/camilwojcik "camilwojcik (15 commits)")

### Embed Badge

![Health badge](/badges/camilwojcik-logs-cleanup/health.svg)

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

###  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)
