PHPackages                             lukaszaleckas/laravel-fallback-cache - 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. lukaszaleckas/laravel-fallback-cache

ActiveLibrary[Caching](/categories/caching)

lukaszaleckas/laravel-fallback-cache
====================================

v1.0.0(3y ago)05.7k↓14.3%3[2 PRs](https://github.com/lukaszaleckas/laravel-fallback-cache/pulls)PHPPHP ^7.4|^8.0

Since Mar 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/lukaszaleckas/laravel-fallback-cache)[ Packagist](https://packagist.org/packages/lukaszaleckas/laravel-fallback-cache)[ RSS](/packages/lukaszaleckas-laravel-fallback-cache/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (3)Used By (0)

Laravel Fallback Cache
======================

[](#laravel-fallback-cache)

This simple package aims to handle cache store downtimes.

Let's say your default cache driver is redis and you experience it's downtime. Your whole app would be down because of that.

This package tries retrieving a value from cache store and if exception is thrown, switches cache driver / store to a one specified in config.

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

[](#installation)

1. Run:

```
composer require lukaszaleckas/laravel-fallback-cache

```

This package does not automatically register service provider, since you might be using cache in other providers. So you need to register it in your application's `app.php`:

```
LaravelFallbackCache\FallbackCacheServiceProvider::class
```

**Note:** if you are using cache in other providers, register this one before them.

2. Publish `fallback-cache.php` config file:

```
    php artisan vendor:publish --tag=fallback-cache

```

That's it!

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

1145d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30416654c84b25a433b4c1c5360c8fac347b923247750b19a0310e45dc4aa5f4?d=identicon)[lukaszaleckas](/maintainers/lukaszaleckas)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/lukaszaleckas-laravel-fallback-cache/health.svg)

```
[![Health](https://phpackages.com/badges/lukaszaleckas-laravel-fallback-cache/health.svg)](https://phpackages.com/packages/lukaszaleckas-laravel-fallback-cache)
```

###  Alternatives

[imanghafoori/laravel-widgetize

A minimal yet powerful package to give a better structure and caching opportunity for your Laravel apps.

909137.9k12](/packages/imanghafoori-laravel-widgetize)[swayok/alternative-laravel-cache

Replacements for Laravel's redis and file cache stores that properly implement tagging idea. Powered by cache pool implementations provided by http://www.php-cache.com/

202541.1k6](/packages/swayok-alternative-laravel-cache)[alexmg86/laravel-sub-query

Laravel subquery

7538.4k](/packages/alexmg86-laravel-sub-query)[laravel-enso/rememberable

Model caching dependency for Laravel Enso

2863.2k25](/packages/laravel-enso-rememberable)[byerikas/cache-tags

Allows for Redis/Valkey cache flushing multiple tagged items by a single tag.

1413.9k](/packages/byerikas-cache-tags)

PHPackages © 2026

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