einar-hansen/laravel-psr-6-cache
Laravel package that bridges Laravel’s cache system with PSR-6. Use Laravel’s cache stores through a PSR-6 CacheItemPoolInterface for interoperability with PSR-compliant libraries, with simple configuration and drop-in integration.
Cache::store() with file/array drivers).spatie/laravel-cache or stripe/laravel-cache may offer better support.For Executives: "This package lets us standardize caching across our Laravel services using PSR-6, a PHP industry standard. It’s a lightweight, MIT-licensed solution that abstracts caching backends (e.g., Redis, Memcached), so we can scale performance-critical features—like APIs or heavy computations—without rewriting core logic. While adoption is low, it aligns with our long-term goal of modular, standards-based systems and avoids reinventing the wheel. The tradeoff is minimal maintenance risk, but we can mitigate this by pairing it with a more robust PSR-6 library if needed."
For Engineering: *"This is a thin PSR-6 adapter for Laravel’s cache system. Key benefits:
CacheItemPool pooling).
Recommendation: Start with this for PSR-6 compliance, but plan to fork or switch to spatie/laravel-cache if we need more features. Example setup:// config/cache.php
'psr6' => [
'driver' => 'psr6',
'store' => 'redis', // Uses Laravel's Redis driver
],
Bind the PSR-6 pool in a service provider and inject CacheItemPoolInterface where needed."*
How can I help you explore Laravel packages today?