PHPackages                             einar-hansen/laravel-psr-6-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. einar-hansen/laravel-psr-6-cache

ActiveLibrary[Caching](/categories/caching)

einar-hansen/laravel-psr-6-cache
================================

A PHP service that allows you to easily communicate with football-data.org apis using Laravel.

1.0.1(3y ago)123.3k—1.9%13MITPHPPHP ^8.0

Since Aug 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/einar-hansen/laravel-psr-6-cache)[ Packagist](https://packagist.org/packages/einar-hansen/laravel-psr-6-cache)[ Docs](https://github.com/einar-hansen/laravel-psr-6-cache)[ GitHub Sponsors](https://github.com/einar-hansen)[ RSS](/packages/einar-hansen-laravel-psr-6-cache/feed)WikiDiscussions main Synced 2w ago

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

Laravel PSR-6 Cache
===================

[](#laravel-psr-6-cache)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b1f1d83a45bd67a8bfd20a6a75b6cb85c81543d8ffea69bdc383917edf06131d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65696e61722d68616e73656e2f6c61726176656c2d7073722d362d63616368652e737667)](https://packagist.org/packages/einar-hansen/laravel-psr-6-cache)[![Minimum PHP Version](https://camo.githubusercontent.com/905c670b6e3bc20026bddbc8923df4d38111e526b88f1252ac4ceb6643299d96/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e302d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/718f116a8830b31adf5a0340e70776156b9993ff6227eb3b2440fe27b519246d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f65696e61722d68616e73656e2f6c61726176656c2d7073722d362d63616368652e737667)](https://packagist.org/packages/einar-hansen/laravel-psr-6-cache)[![Total Downloads](https://camo.githubusercontent.com/ce9d855e3a31dd22ee9f731e3bf33f73f594b35612643abe1a6c0087f13407da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65696e61722d68616e73656e2f6c61726176656c2d7073722d362d63616368652e737667)](https://packagist.org/packages/einar-hansen/laravel-psr-6-cache)

This package adds PSR-6 cache support to Laravel 5.8 and above. Laravel 6 has PSR-6 support build in which can be used through the `cache.psr6` container alias. You should install symfony cache if you go down this route.

```
composer require symfony/cache
```

Usage
-----

[](#usage)

To start using a `Psr\Cache\CacheItemPoolInterface` typed implementation that stores data in Laravel's configured cache, add this to a service provider:

```
use EinarHansen\Cache\CacheItemPool;
use Illuminate\Contracts\Cache\Repository;
use Psr\Cache\CacheItemPoolInterface;

$this->app->singleton(CacheItemPoolInterface::class, function ($app) {
    return new CacheItemPool($app->make(Repository::class));
});
```

Right now you're all set to start injecting `CacheItemPoolInterface`'d everywhere you need it.

Install
-------

[](#install)

In order to install it via composer you should run this command:

```
composer require einar-hansen/laravel-psr-6-cache
```

Testing
-------

[](#testing)

```
# Install packages
docker run --rm \
    -v $(pwd):/var/www/html \
    -w /var/www/html \
    laravelsail/php80-composer:latest \
    composer install

# Run code style formatting and static analysis
docker run -it -v $(pwd):/app -w /app php:8.0-alpine vendor/bin/pint src
docker run -it -v $(pwd):/app -w /app php:8.0-alpine vendor/bin/phpstan --level=9 analyse
```

Credits
-------

[](#credits)

This package is based on the package [madewithlove/illuminate-psr-cache-bridge](https://github.com/madewithlove/illuminate-psr-cache-bridge). It's modified to suit my preferences and is requiring PHP8.0.

- [https://github.com/madewithlove](https://github.com/madewithlove/illuminate-psr-cache-bridge)

About
-----

[](#about)

Einar Hansen is a developer based in Oslo, Norway. You'll find more information about me [on my website](https://einarhansen.dev).

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

2

Last Release

1457d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7867c8e6cb949ab73460f6189d49e8423431864c495a389e650e82509e44d954?d=identicon)[einar-hansen](/maintainers/einar-hansen)

---

Top Contributors

[![einar-hansen](https://avatars.githubusercontent.com/u/49709354?v=4)](https://github.com/einar-hansen "einar-hansen (2 commits)")

---

Tags

laravelcachepsr-6einareinar-hansen

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/einar-hansen-laravel-psr-6-cache/health.svg)

```
[![Health](https://phpackages.com/badges/einar-hansen-laravel-psr-6-cache/health.svg)](https://phpackages.com/packages/einar-hansen-laravel-psr-6-cache)
```

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6023.2M7](/packages/propaganistas-laravel-disposable-email)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k9.3M74](/packages/spatie-laravel-responsecache)[harris21/laravel-fuse

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

46273.9k](/packages/harris21-laravel-fuse)[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[madewithlove/illuminate-psr-cache-bridge

851.5M13](/packages/madewithlove-illuminate-psr-cache-bridge)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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