PHPackages                             oneseven9955/logkeeper - 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. oneseven9955/logkeeper

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

oneseven9955/logkeeper
======================

LogKeeper archives old files based on a customizable time delta, ensuring your logs remain organized, and easily manageable.

0.1.0(1y ago)06MITPHPPHP &gt;=8.1

Since Jul 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/179955/logkeeper)[ Packagist](https://packagist.org/packages/oneseven9955/logkeeper)[ RSS](/packages/oneseven9955-logkeeper/feed)WikiDiscussions main Synced yesterday

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

LogKeeper archives old files based on a customizable time delta, ensuring your logs remain organized, and easily manageable.

### Getting Started

[](#getting-started)

```
use OneSeven9955\LogKeeper\Config;
use OneSeven9955\LogKeeper\LogKeeper;

$config = new Config(
    path: '/path/to/log/files/*.log',
    timeDelta: \DateInterval::createFromDateString("1 month"),
);

$service = new LogKeeper(
    config: $config,
);

$service->run();
```

With custom old archive name:

```
$config = new Config(
    path: '/path/to/log/files/*.log',
    timeDelta: \DateInterval::createFromDateString("1 month"),
    oldPath: 'old/custom.zip', // Default: "old.zip"
);
```

Keep 30 old files:

```
$config = new Config(
    path: '/path/to/log/files/*.log',
    timeDelta: \DateInterval::createFromDateString("1 month"),
    oldCount: 30,
);
```

Remove all old files:

```
$config = new Config(
    path: '/path/to/log/files/*.log',
    timeDelta: \DateInterval::createFromDateString("1 month"),
    oldCount: 0,
);
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

724d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/60822326?v=4)[179955](/maintainers/179955)[@179955](https://github.com/179955)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oneseven9955-logkeeper/health.svg)

```
[![Health](https://phpackages.com/badges/oneseven9955-logkeeper/health.svg)](https://phpackages.com/packages/oneseven9955-logkeeper)
```

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k247.1M334](/packages/sentry-sentry)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.3M621](/packages/illuminate-log)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.0M219](/packages/api-platform-metadata)

PHPackages © 2026

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