PHPackages                             dainsys/clear-laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dainsys/clear-laravel-logs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dainsys/clear-laravel-logs
==========================

Clear Laravel log files

2.3.0(5y ago)0469MITPHPPHP &gt;=7.0CI failing

Since Apr 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Yismen/clear-laravel-logs)[ Packagist](https://packagist.org/packages/dainsys/clear-laravel-logs)[ RSS](/packages/dainsys-clear-laravel-logs/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (6)Versions (16)Used By (0)

Dainsys Clear Logs Command
==========================

[](#dainsys-clear-logs-command)

Allows to list or delete all laravel...log logs files

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

[](#installation)

- Step 1: Add the following entry to your composer.json file: ```
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/Yismen/clear-laravel-logs.git"
        }
    ]
    ```
- Step 2: Run `composer require dainsys/clear-laravel-logs` command to install as a dependency
- Step 3: The Package should be auto-discovered by Laravel. However, you could all register it in your config.app file within the providers array: ```
        'providers' => [
            Dainsys\ClearLogs\ClearLogsServiceProvider::class,
        ]
    ```

Ussage
------

[](#ussage)

- To just list the log files, run without any argument:
    - `php artisan dainsys:laravel-logs`
- To remove all existing log files, pass the --clear flag
    - `php artisan dainsys:laravel-logs --clear`
- By default, the last 8 files are keept. To override the number of files to preserve, update the --keep flag
    - `php artisan dainsys:laravel-logs --clear --keep=0`
- By default, the package search for any file starting with 'laravel-'. To override, pass the desired starting file name as an option
    - `php artisan dainsys:laravel-logs new_file_name --clear `

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~16 days

Recently: every ~42 days

Total

14

Last Release

2060d ago

Major Versions

v1.4 → v2.02020-04-07

### Community

Maintainers

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

---

Top Contributors

[![Yismen](https://avatars.githubusercontent.com/u/4872942?v=4)](https://github.com/Yismen "Yismen (14 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dainsys-clear-laravel-logs/health.svg)

```
[![Health](https://phpackages.com/badges/dainsys-clear-laravel-logs/health.svg)](https://phpackages.com/packages/dainsys-clear-laravel-logs)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

9782.1M162](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

20432.2M1.5k](/packages/illuminate-queue)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4821.5k](/packages/erag-laravel-lang-sync-inertia)

PHPackages © 2026

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