laminas/laminas-cache-storage-adapter-filesystem
Filesystem storage adapter for laminas-cache. Provides a cache backend that persists items on disk with configurable options and integration with Laminas Cache storage interfaces, suitable for local or shared filesystem caching.
Adopt if:
Look elsewhere if:
spatie/laravel-cache)."This package lets us replace expensive external caching services with a lightweight, self-hosted solution for non-critical data—reducing cloud costs by up to 30% while maintaining performance. It’s battle-tested (used by Laminas, a PHP framework with 100K+ stars), PSR-compliant for future-proofing, and integrates seamlessly with Laravel. We’ll pilot it for analytics and session storage, with a clear path to expand. No vendor lock-in; we own the infrastructure."
Key Metrics to Track:
*"This is a drop-in filesystem adapter for Laravel’s cache system, built on Laminas (formerly Zend Framework). It’s ideal for:
config, translations) on disk.Why this over alternatives:
Trade-offs:
Implementation:
// config/cache.php
'drivers' => [
'filesystem' => [
'driver' => 'file',
'path' => storage_path('framework/cache'),
'ttl' => 60 * 60, // 1 hour default
],
],
Next Steps:
cache:clear + cache:store tests)./stats).How can I help you explore Laravel packages today?