cache/illuminate-adapter
PSR-6 cache pool adapter for Laravel Illuminate cache stores. Wrap any Illuminate\Cache\Store (e.g., ArrayStore) to use via standard PSR-6 CacheItemPoolInterface. Part of the PHP-Cache organization with shared docs on tags and hierarchy.
user:123:profile, product:category:electronics).ArrayStore for unit tests with PSR-6 interfaces, reducing mocking complexity.Adopt if:
Avoid if:
cache()->rememberForever(), events) not exposed via PSR-6.predis/predis, symfony/cache) that already meet your needs.CacheItemPoolInterface.Look elsewhere if:
predis/predis or php-redis directly.cache:tag or custom solutions may suffice.cache/array-adapter for simpler use cases.For Executives: "This package lets us standardize caching across all PHP services using PSR-6, reducing technical debt and enabling easier adoption of new tools like Redis or Memcached. It’s a lightweight bridge to Laravel’s existing cache system—think of it as Lego blocks for caching that work anywhere. With zero lock-in and a MIT license, it’s a low-risk way to future-proof our stack for scalability and multi-cloud deployments. The overhead is negligible, and it pays dividends in maintainability."
For Engineering: *"By wrapping Laravel’s cache in a PSR-6 adapter, we gain:
user:123 + user:123:orders) for complex data relationships.Cache::store() with a 2-line adapter. Benchmarks show <5% overhead vs. native Laravel cache. Ideal for projects with >3 services or frequent cache updates."*For Architects: *"This addresses two critical pain points:
For Developers: *"Need to use Laravel’s cache in a Symfony service? Or want to test your PSR-6 cache logic with real Laravel drivers? This adapter lets you:
RedisStore, DatabaseStore, or ArrayStore with PSR-6 interfaces.$pool = new IlluminateCachePool(Cache::store('redis'));
$item = $pool->getItem('key'); // PSR-6 compliant!
Pro tip: Start with ArrayStore for testing before moving to production drivers."*
How can I help you explore Laravel packages today?