PHPackages                             szabson/logs-cleanup-data - 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. szabson/logs-cleanup-data

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

szabson/logs-cleanup-data
=========================

Logs Cleanup Data Project

1.0.0(2y ago)04PHP

Since Oct 23Pushed 2y ago1 watchersCompare

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

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

Logs Cleanup Data
=================

[](#logs-cleanup-data)

Logs Cleanup Data is a simple PHP package for managing and working with logs.

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

[](#installation)

You can install this package via Composer. Run the following command to add it to your project:

```
composer require szabson/logs-cleanup-data:dev-master
```

Example Usage
-------------

[](#example-usage)

In the usage example found in the RemoveLogsCommandTest, a logger factory FileLoggerFactory is created, which is used by RemoveLogsCommand to manage logs. The RemoveLogsCommand removes logs older than a specified number of days.

Requirements
------------

[](#requirements)

The project is written in PHP and uses PHPUnit for testing. To run the project and tests, you need to have PHP version 8.2 and PHPUnit installed. The project has no external library dependencies.

Additional content
------------------

[](#additional-content)

In addition to deleting logs, I've added some simple log management features that you'll find in FileLogger I implemented file log management. I took care of the possibility of future development with database logs.

Running Tests
-------------

[](#running-tests)

```
 vendor/bin/phpunit tests
```

This will run all the tests and display the results in the console.

Author
------

[](#author)

This project was created by Daniel Chabowski

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

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

929d ago

### Community

Maintainers

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

---

Top Contributors

[![Szabek](https://avatars.githubusercontent.com/u/81251229?v=4)](https://github.com/Szabek "Szabek (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.1k](/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.2M137](/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)
