PHPackages                             boolfalse/clearcaches - 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. [Caching](/categories/caching)
4. /
5. boolfalse/clearcaches

ActiveLibrary[Caching](/categories/caching)

boolfalse/clearcaches
=====================

Package for recreating Laravel all caches, and for dropping all DB tables, for flushing all sessions.

v1.1.4(7y ago)12.4k↓100%1MITPHP

Since Sep 23Pushed 7y agoCompare

[ Source](https://github.com/boolfalse/clearcaches)[ Packagist](https://packagist.org/packages/boolfalse/clearcaches)[ RSS](/packages/boolfalse-clearcaches/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (19)Used By (0)

[![Total Downloads](https://camo.githubusercontent.com/b20818f7cc821311325424dc57fd8da96801fc2e1c8d98e9252cec769708189e/68747470733a2f2f706f7365722e707567782e6f72672f626f6f6c66616c73652f636c6561726361636865732f646f776e6c6f616473)](https://packagist.org/packages/boolfalse/clearcaches)[![License](https://camo.githubusercontent.com/7138fe35357d3e842a253cb5b9fd21f94c11de4dcd86a393b386002276ac3d8e/68747470733a2f2f706f7365722e707567782e6f72672f626f6f6c66616c73652f636c6561726361636865732f6c6963656e7365)](https://packagist.org/packages/boolfalse/clearcaches)

Package for clearing/recreating all Laravel caches, for dropping all DB tables, and flushing all Laravel sessions. It's a package created for easy development. This package is my first created package. So I will glad to hear any advices and suggestions.

Package Installation:
---------------------

[](#package-installation)

Require this package with composer. It is recommended to only require the package for development.

```
composer require boolfalse/clearcaches --dev
```

But I prefer to use this in production level too (sometimes I need this). So you can just install with this:

```
composer require boolfalse/clearcaches
```

For Laravel 5.4 and lower versions need to add service provider in config/app.php (or in config.php) to "providers" list array:

```
Boolfalse\ClearCaches\ClearCachesServiceProvider::class,
```

For Laravel 5.5 and higher Package have Auto-Discovery functionality, so doesn't require you to manually add the ServiceProvider.

Usage:
------

[](#usage)

Clear all Laravel Caches and Dump Autoload:

```
php artisan clearcaches
```

With CLI option 'dump' You can prevent Autoload Dumping:

```
php artisan --dump='no'
```

Drop all tables from DB:

```
php artisan droptables
```

Flush all Laravel sessions:

```
php artisan flushsessions
```

- For index page: your-domain/dev/clearcaches-check
- For clearing and recreating caches: your-domain/dev/clearcaches
- For dropping all DB tables: your-domain/dev/droptables

Update the package:
-------------------

[](#update-the-package)

This command will update this specific package:

```
composer update boolfalse/clearcaches
```

Or

```
composer update boolfalse/clearcaches --lock
```

For updating all existing packages, just run:

```
composer update
```

Remove the package:
-------------------

[](#remove-the-package)

NOTE: For Laravel 5.4 and lower versions (for avoid terminal errors) before running command You need to firstly manually remove

```
Boolfalse\ClearCaches\ClearCachesServiceProvider::class,
```

service provider from "providers" list array in config/app.php (or in config.php).

```
composer remove boolfalse/clearcaches
```

And after that open '/dev/clearcaches' pages for clearing providers config caches; or just run this commands:

```
php artisan cache:clear
php artisan config:cache
```

Publishing the package index view:
----------------------------------

[](#publishing-the-package-index-view)

Available for ^1.0 version

```
php artisan vendor:publish --provider="Boolfalse\ClearCaches\ClearCachesServiceProvider"
```

History:
--------

[](#history)

#### v1.1.5: Added 'flushsessions' command.

[](#v115-added-flushsessions-command)

#### v1.1.0: Removed view (for publishing), controller, route

[](#v110-removed-view-for-publishing-controller-route)

##### v1.0.12: "minimum-stability" changed to "stable" version.

[](#v1012-minimum-stability-changed-to-stable-version)

##### v1.0.11: Added 'clear-compiled' artisan command.

[](#v1011-added-clear-compiled-artisan-command)

##### v1.0.6: Added 'dump' option for 'clearcaches' CLI custom artisan command.

[](#v106-added-dump-option-for-clearcaches-cli-custom-artisan-command)

##### v1.0.5: Added custom artisan commands with appropriate signatures ('clearcaches', 'droptables').

[](#v105-added-custom-artisan-commands-with-appropriate-signatures-clearcaches-droptables)

##### v1.0.4: Ability to publish package index page and have that as 'resources\\views\\clearcaches\\cc.blade.php' file

[](#v104-ability-to-publish-package-index-page-and-have-that-as-resourcesviewsclearcachesccbladephp-file)

##### v1.0.2: Added embed buttons from  for README.md

[](#v102-added-embed-buttons-from-httpsposerpugxorg-for-readmemd)

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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

18

Last Release

2777d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08afdb5f82c232e1df86bf06f0229cf31d000a0755331afadf9341abb54d92bb?d=identicon)[boolfalse](/maintainers/boolfalse)

---

Top Contributors

[![boolfalse](https://avatars.githubusercontent.com/u/22226570?v=4)](https://github.com/boolfalse "boolfalse (30 commits)")

---

Tags

cacheclearinglaravelsessiontables

### Embed Badge

![Health badge](/badges/boolfalse-clearcaches/health.svg)

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

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

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