| Package Data | |
|---|---|
| Maintainer Username: | hannesvdvreken |
| Package Create Date: | 2016-03-18 |
| Package Last Update: | 2019-11-30 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-26 03:17:10 |
| Package Statistics | |
|---|---|
| Total Downloads: | 1,434,970 |
| Monthly Downloads: | 3,896 |
| Daily Downloads: | 10 |
| Total Stars: | 86 |
| Total Watchers: | 12 |
| Total Forks: | 8 |
| Total Open Issues: | 1 |
To start using a Psr\Cache\CacheItemPoolInterface typed implementation that stores data in Laravel's configured cache, add this to a service provider:
use Illuminate\Contracts\Cache\Repository;
use Madewithlove\IlluminatePsrCacheBridge\Laravel\CacheItemPool;
use Psr\Cache\CacheItemPoolInterface;
$this->app->singleton(CacheItemPoolInterface::class, function ($app) {
$repository = $app->make(Repository::class);
return new CacheItemPool($repository);
});
Right now you're all set to start injecting CacheItemPoolInterface'd everywhere you need it.
In order to install it via composer you should run this command:
composer require madewithlove/illuminate-psr-cache-bridge
vendor/bin/phpunit
# or:
vendor/bin/phpunit --testsuite=integration-tests
vendor/bin/phpunit --testsuite=unit-tests
The MIT License (MIT). Please see License File for more information.