PHPackages                             julesgraus/housekeeper - 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. julesgraus/housekeeper

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

julesgraus/housekeeper
======================

Tools for cleaning old stuff up

1.0.0(3y ago)0231PHPPHP ^8.0

Since Mar 6Pushed 3y ago1 watchersCompare

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

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

housekeeper
===========

[](#housekeeper)

Cleans up old stuff.

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

[](#installation)

You can install the package via composer:

```
composer require julesgraus/housekeeper
```

Make sure your root composer.json does contain a reference to the repository. Make sure you've set up [a cron job on the server](https://laravel.com/docs/8.x/scheduling#running-the-scheduler) if you want to automatically trigger the housekeeper.

Usage
-----

[](#usage)

Make sure your housekeepable classes will implement the `CanDoHouseKeeping` interface from this pacakge:

```
class MyClass implements \JulesGraus\Housekeeper\Contracts\CanDoHouseKeeping {
    //Your regular methods and properties here.

    public static function doHousekeeping(OutputStyle $output) {
        //Put your houskeeping code here.
    }
}
```

You can use the `$output` variable to write feedback about the housekeeping to the console. You can register your implementation to the housekeeper in a serviceprovider by passing it to the register method of the housekeeper:

```
\JulesGraus\Housekeeper\Housekeeper::register([
    MyClass::class
]);
```

Every day at 02:00, the housekeeper will trigger the doHousekeeping methods af all registered classes by default.

### Running the housekeeper at a different time:

[](#running-the-housekeeper-at-a-different-time)

If you want to do run at a different time you can do so by using the housekeepers `schedule` command like so:

```
\JulesGraus\Housekeeper\Housekeeper::schedule(function(\Illuminate\Console\Scheduling\Event $command) {
    $command->twiceDaily(1, 13); //Run the task daily at 1:00 & 13:00
});
```

### Manually running the housekeeper:

[](#manually-running-the-housekeeper)

You can run `php artisan housekeeper:run` in your project root to manually run the housekeeper. This can be handy when testing.

Testing
-------

[](#testing)

Run tests by running this command in the root of the package.

```
composer test
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

1216d ago

### Community

Maintainers

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

---

Top Contributors

[![julesgraus](https://avatars.githubusercontent.com/u/4387442?v=4)](https://github.com/julesgraus "julesgraus (2 commits)")

---

Tags

laravelJulesGraushouskeeper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/julesgraus-housekeeper/health.svg)

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

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20619.4k](/packages/stephenjude-filament-blog)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11273.0k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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