PHPackages                             imannms/laravel-s3-cache-driver - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. imannms/laravel-s3-cache-driver

ActiveLibrary[File &amp; Storage](/categories/file-storage)

imannms/laravel-s3-cache-driver
===============================

Laravel S3 cache driver. Support: Amazon S3, Digital Ocean Spaces, etc.

v1.0.1(4y ago)147.0k—1.9%3MITPHPPHP &gt;=5.6CI failing

Since Oct 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/imannms/laravel-s3-cache-driver)[ Packagist](https://packagist.org/packages/imannms/laravel-s3-cache-driver)[ Docs](https://github.com/imannms/laravel-s3-cache-driver)[ RSS](/packages/imannms-laravel-s3-cache-driver/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

S3 cache driver for Laravel 5 and 6. Support: Amazon S3, Digital Ocean Spaces, etc.

The repository is originally forked from `Illuminate\Cache\FileStore`.

The advantages of using S3:

- S3 have an **unlimited storage** or **big storage**.
- You can cache everything without worried about running out of storage capacity.
- It's cheap!

Note: Redis, Memcached, and almost others laravel default cache store have a limited storage.

---

How to install
==============

[](#how-to-install)

Install using composer
----------------------

[](#install-using-composer)

`composer require imannms/laravel-s3-cache-driver`

### For Laravel 5.5+

[](#for-laravel-55)

Nothing is needed, package auto-discovery will work.

### For Laravel 5.2+

[](#for-laravel-52)

Add to `config/app.php`.

```
	/*
	 * Package Service Providers...
	 */
	Imannms\LaravelS3CacheDriver\S3CacheServiceProvider::class,
```

Add config
----------

[](#add-config)

Add to `config/cache.php` with the config template bellow.

Please choose one.

**Amazon S3** config template.

```

	'stores' => [

		// other stores

		's3' => [
			'driver' => 's3',
			'key' => env('AWS_ACCESS_KEY_ID'),
			'secret' => env('AWS_SECRET_ACCESS_KEY'),
			'region' => env('AWS_DEFAULT_REGION'),
			'bucket' => env('AWS_BUCKET'),
			'url' => env('AWS_URL'),
			'path' => env('AWS_PATH', 'cache'), // cache root directory, you can change it to suit your need
		],
	]

```

**Digital Ocean Spaces** config template.

```

	'stores' => [

		// other stores

		'do_spaces' => [
			'driver' => 's3',
			'key' => env('DO_SPACES_KEY'),
			'secret' => env('DO_SPACES_SECRET'),
			'region' => env('DO_SPACES_REGION'),
			'bucket' => env('DO_SPACES_BUCKET'),
			'endpoint' => env('DO_SPACES_ENDPOINT'),
			'path' => env('DO_SPACES_PATH', 'cache'), // cache root directory, you can change it to suit your need
		],
	]

```

Finally
-------

[](#finally)

Run `php artisan config:cache`.

---

How to use
==========

[](#how-to-use)

```
use Cache;

Cache::store('s3')->put('key', 'value', 60*5);
Cache::store('s3')->get('key');
```

---

Recommendation
==============

[](#recommendation)

Enable CDN on your cloud storage for faster speed.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.1% 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 ~651 days

Total

2

Last Release

1765d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/183f514725da1125268461d0c3bdc00bad12c865864f6ac91be2a0264e2137b5?d=identicon)[imannms](/maintainers/imannms)

---

Top Contributors

[![imannms](https://avatars.githubusercontent.com/u/26287658?v=4)](https://github.com/imannms "imannms (34 commits)")[![jcalonso](https://avatars.githubusercontent.com/u/664474?v=4)](https://github.com/jcalonso "jcalonso (1 commits)")

---

Tags

phplaravels3laravel cache driveramazon-s3digital ocean spaces

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/imannms-laravel-s3-cache-driver/health.svg)

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

###  Alternatives

[unisharp/s3-presigned

An AWS S3 package for pre-signed upload purpose in Laravel and PHP.

141.8k](/packages/unisharp-s3-presigned)[pharaonic/laravel-has-files

Laravel - Model's files like Image, Picture, Cover, Video, Audio, file, ...etc.

101.1k1](/packages/pharaonic-laravel-has-files)

PHPackages © 2026

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