2017 © Pedro Peláez
 

library illuminate-psr-cache-bridge

image

madewithlove/illuminate-psr-cache-bridge

  • Monday, June 19, 2017
  • by hannesvdvreken
  • Repository
  • 2 Watchers
  • 47 Stars
  • 207,906 Installations
  • PHP
  • 24 Dependents
  • 4 Suggesters
  • 3 Forks
  • 1 Open issues
  • 4 Versions
  • 22 % Grown

The README.md

PSR-6 cache implementation that connects to Laravel's cache Repository

Latest Version on Packagist Software License Build Status Code Coverage Quality Score, (*1)

This package adds PSR-6 cache support to Laravel 5. Laravel 6 has PSR-6 support build in which can be used through the cache.psr6 container alias., (*2)

Usage

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

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., (*4)

Install

In order to install it via composer you should run this command:, (*5)

composer require madewithlove/illuminate-psr-cache-bridge

Testing

``` bash vendor/bin/phpunit, (*6)

or:

vendor/bin/phpunit --testsuite=integration-tests vendor/bin/phpunit --testsuite=unit-tests ```, (*7)

Credits

All Contributors, (*8)

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

19/06 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel cache adapter psr-6 bridge implementation

19/06 2017

1.0.2

1.0.2.0

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel cache adapter psr-6 bridge implementation

02/07 2016

1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel cache adapter psr-6 bridge implementation

04/06 2016

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel cache adapter psr-6 bridge implementation