PHPackages                             tobya/clearallcache - 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. tobya/clearallcache

ActiveLibrary

tobya/clearallcache
===================

Clears more than just default Cache driver

v0.3(yesterday)00[3 PRs](https://github.com/tobya/ClearAllCache/pulls)MITPHPPHP ^8.0CI passing

Since Jul 30Pushed yesterdayCompare

[ Source](https://github.com/tobya/ClearAllCache)[ Packagist](https://packagist.org/packages/tobya/clearallcache)[ Docs](https://github.com/tobya/clearallcache)[ GitHub Sponsors](https://github.com/tobya)[ RSS](/packages/tobya-clearallcache/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (8)Versions (3)Used By (0)

Clears more than just default Cache driver
==========================================

[](#clears-more-than-just-default-cache-driver)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6647a94a1e78afae7474df7930696f2ae6852cdcd6462bb8be11176dcc47a592/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f6279612f636c656172616c6c63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tobya/clearallcache)[![Total Downloads](https://camo.githubusercontent.com/44820e11a488f2eab36f02adef0eafd0c400bb6870ceb49a0c7e439e046c8163/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f6279612f636c656172616c6c63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tobya/clearallcache)

Most applications use a single cache, we can decide between `database`, `file`, `redis` and many more, however, some applications require multiple caches to function correctly. If you simply run `cache:clear` you will clear the default cache but not any others which can cause confusion in development and problems in production.

`cache:clearall` will clear all your caches stores that you are using.

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

[](#installation)

You can install the package via composer:

```
composer require tobya/clearallcache
```

Usage
-----

[](#usage)

add additional caches that are in use and should be cleared to `/config/cache.php`

```
    'stores_in_use' => ['file','database'],
```

Then call command

```
php artisan cache:clearall
```

This will first call `cache:clear` clearing the default cache and then clear any cache stores listed in the `stores_in_use`key in your cache.php config file.

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.

Credits
-------

[](#credits)

- [Toby Allen](https://github.com/tobya)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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 ~0 days

Total

2

Last Release

1d ago

### Community

Maintainers

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

---

Top Contributors

[![tobya](https://avatars.githubusercontent.com/u/325502?v=4)](https://github.com/tobya "tobya (1 commits)")

---

Tags

laravelclearcacheTobyaclearallcache

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/tobya-clearallcache/health.svg)

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

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M48](/packages/spatie-laravel-pdf)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.8k](/packages/rawilk-profile-filament-plugin)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

45955.7k](/packages/harris21-laravel-fuse)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24957.5k](/packages/vormkracht10-laravel-mails)[lettermint/lettermint-laravel

Official Lettermint driver for Laravel

1190.2k1](/packages/lettermint-lettermint-laravel)

PHPackages © 2026

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