PHPackages                             longestdrive/laravel-maintenance-tools - 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. longestdrive/laravel-maintenance-tools

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

longestdrive/laravel-maintenance-tools
======================================

This is my package laravel-maintenance-tools. It provides various tools to help with Laravel maintenance tasks.

1.0.1(10mo ago)034[4 PRs](https://github.com/longestdrive/laravel-maintenance-tools/pulls)MITPHPPHP ^8.3CI passing

Since Aug 4Pushed 2mo agoCompare

[ Source](https://github.com/longestdrive/laravel-maintenance-tools)[ Packagist](https://packagist.org/packages/longestdrive/laravel-maintenance-tools)[ Docs](https://github.com/longestdrive/laravel-maintenance-tools)[ GitHub Sponsors](https://github.com/Longestdrive)[ RSS](/packages/longestdrive-laravel-maintenance-tools/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (15)Versions (6)Used By (0)

This is my package laravel-maintenance-tools
============================================

[](#this-is-my-package-laravel-maintenance-tools)

[![Latest Version on Packagist](https://camo.githubusercontent.com/265b33769dc704f017f38b2dc1ea273fc79a22a89b29be969683c5aab792ea86/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7261792d6372616e652f6c61726176656c2d6d61696e74656e616e63652d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ray-crane/laravel-maintenance-tools)[![GitHub Tests Action Status](https://camo.githubusercontent.com/8a0d9cc35cd472d4ede61cab0b0e30891c7bd4b7bee0cdf439c3ff5f4582c6e5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7261792d6372616e652f6c61726176656c2d6d61696e74656e616e63652d746f6f6c732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/ray-crane/laravel-maintenance-tools/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f1985ac7e497e518149b8788f9c068ccffba46d2769f754bb13f1153d376aa6c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7261792d6372616e652f6c61726176656c2d6d61696e74656e616e63652d746f6f6c732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/ray-crane/laravel-maintenance-tools/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/b27826deda7459af7c212b5b5a6d13dd9b7e08d53bfbefb89f14192bced77ee8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7261792d6372616e652f6c61726176656c2d6d61696e74656e616e63652d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ray-crane/laravel-maintenance-tools)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

Developed using spatie/laravel-package-skeleton

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

[](#installation)

You can install the package via composer:

```
composer require longestdrive/laravel-maintenance-tools
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-maintenance-tools-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-maintenance-tools-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-maintenance-tools-views"
```

Usage
-----

[](#usage)

### Commands

[](#commands)

The package provides several maintenance commands:

- `clean:tempfiles`: Cleans temporary files from specified directories
- `clean:logs`: Deletes old log files based on retention period
- `find:duplicates`: Finds duplicate classes and files in your application
- `repair:migrations`: Repairs the migrations table
- `scan:nontestmethods`: Scans for non-test methods in test classes

You can run these commands using Artisan:

```
php artisan clean:tempfiles
php artisan clean:logs
php artisan find:duplicates
php artisan repair:migrations
php artisan scan:nontestmethods
```

### Scheduling

[](#scheduling)

The package now includes scheduling functionality for the `clean:tempfiles` and `logs:clean-old` commands. By default, these commands are scheduled to run weekly on Monday, with `clean:tempfiles` at 1:00 AM and `logs:clean-old` at 2:00 AM.

You can customize the scheduling in the configuration file:

```
'schedule' => [
    'clean_temp_files' => [
        'enabled' => true,
        'frequency' => 'weekly',
        'day' => 'monday',
        'time' => '01:00',
    ],
    'clean_old_logs' => [
        'enabled' => true,
        'frequency' => 'weekly',
        'day' => 'monday',
        'time' => '02:00',
    ],
],
```

For more details on scheduling options, see [SCHEDULING.md](SCHEDULING.md).

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Longestdrive](https://github.com/longestdrive)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance72

Regular maintenance activity

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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

327d ago

### Community

Maintainers

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

---

Top Contributors

[![longestdrive](https://avatars.githubusercontent.com/u/3138181?v=4)](https://github.com/longestdrive "longestdrive (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laraveltoolsLongestdrive

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/longestdrive-laravel-maintenance-tools/health.svg)

```
[![Health](https://phpackages.com/badges/longestdrive-laravel-maintenance-tools/health.svg)](https://phpackages.com/packages/longestdrive-laravel-maintenance-tools)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k33.0M880](/packages/spatie-laravel-data)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.3M42](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

328482.0k25](/packages/codewithdennis-filament-select-tree)[nativephp/desktop

NativePHP for Desktop

38133.6k8](/packages/nativephp-desktop)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124581.3k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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