PHPackages                             darwinnatha/purge-logs - 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. darwinnatha/purge-logs

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

darwinnatha/purge-logs
======================

a simple package for deleting logs by keeping those at a given period

v1.0(1y ago)1159MITPHPPHP ^8.0

Since Oct 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/darwinnatha/purge-logs)[ Packagist](https://packagist.org/packages/darwinnatha/purge-logs)[ RSS](/packages/darwinnatha-purge-logs/feed)WikiDiscussions main Synced 2d ago

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

Purge Logs
==========

[](#purge-logs)

[![Latest Version on Packagist](https://camo.githubusercontent.com/507832cc1bb314cadc750f3a40b0bcab8763fea483eb35116adea5db47b0ca53/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64617277696e6e617468612f70757267652d6c6f67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/darwinnatha/purge-logs)[![Total Downloads](https://camo.githubusercontent.com/c00059944d0481ea3b298338018ad86c6ec9aba563058350a4a2b1d903e8251c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64617277696e6e617468612f70757267652d6c6f67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/darwinnatha/purge-logs)

This package allows you to delete logs, keeping only those from a given period.

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

[](#installation)

To install this package, you should add the package to your project via Composer.

```
composer require darwinnatha/pure-logs
```

Usage
-----

[](#usage)

To use this package, publish the configuration file.

```
php artisan vendor:publish --provider="Darwinnatha\PurgeLogs\PurgeLogsServiceProvider"
```

Then, you can purge the logs by running the following command.

```
php artisan logs:purge
```

Alternatively, if you want to specify the number of days to retain, you can use the `keep-days` argument.

```
php artisan logs:purge --keep-days=7
```

Configuration
-------------

[](#configuration)

You can configure the number of days to retain by editing the `config/purge-logs.php` file.

```
return [
    'retention_period' => 7,
];
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

636d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/136787768?v=4)[Darwin Fotso](/maintainers/darwinnatha)[@darwinnatha](https://github.com/darwinnatha)

---

Top Contributors

[![darwinnatha](https://avatars.githubusercontent.com/u/136787768?v=4)](https://github.com/darwinnatha "darwinnatha (26 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/darwinnatha-purge-logs/health.svg)

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

###  Alternatives

[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M200](/packages/laravel-ai)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M167](/packages/spatie-laravel-health)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.2k14](/packages/tallstackui-tallstackui)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.9k1](/packages/mike-bronner-laravel-model-caching)

PHPackages © 2026

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