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

ActiveLibrary[Caching](/categories/caching)

dongasai/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)012MITPHPPHP ^8.0

Since Aug 21Pushed 1y agoCompare

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

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

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/c5079640e0285596c9533c0a886fc40beea15d7c5308830cb9dabe8c92a524a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646f6e67617361692f6c61726176656c2d7073722d362d63616368652e737667)](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/ab9e3d9b1ef14e9e4aae07b8124638992ff264bb2b97300c6aa58dc8e2f5edd0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646f6e67617361692f6c61726176656c2d7073722d362d63616368652e737667)](https://packagist.org/packages/einar-hansen/laravel-psr-6-cache)[![Total Downloads](https://camo.githubusercontent.com/01cfe0dfdd2e232a48b9ee658514b7be57982816f9c4f1e0ff6d0ba5b107a3ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646f6e67617361692f6c61726176656c2d7073722d362d63616368652e737667)](https://packagist.org/packages/einar-hansen/laravel-psr-6-cache)

> Fork from

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 dongasai/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

26

—

LowBetter than 43% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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

1360d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6934999dc4a6b6b8c08bf4c6d076da9e0b90d55d6d5c86917cf919ab2aced271?d=identicon)[dongasai](/maintainers/dongasai)

---

Top Contributors

[![dongasai](https://avatars.githubusercontent.com/u/16734530?v=4)](https://github.com/dongasai "dongasai (5 commits)")[![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/dongasai-laravel-psr-6-cache/health.svg)

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

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[silber/page-cache

Caches responses as static files on disk for lightning fast page loads.

1.3k441.9k6](/packages/silber-page-cache)[madewithlove/illuminate-psr-cache-bridge

861.5M13](/packages/madewithlove-illuminate-psr-cache-bridge)[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1076.9M130](/packages/laminas-laminas-cache)[anahkiasen/flatten

A package for the Illuminate framework that flattens pages to plain HTML

33313.0k](/packages/anahkiasen-flatten)[cache/illuminate-adapter

A PSR-6 cache implementation using Illuminate. This implementation supports tags

1177.6k2](/packages/cache-illuminate-adapter)

PHPackages © 2026

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