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

ActiveLibrary

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 1mo 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

27

—

LowBetter than 49% of packages

Maintenance36

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

583d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e36313b007c24352d7698e140f37040859bc039d50682ccf3822f94fc042718?d=identicon)[darwinnatha](/maintainers/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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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