PHP Cache Libraries
Cache libraries for PHP
GitHub Star Comparison
| No | Name | GitHub Stars | Description | Trend | License | Type | Official Site |
|---|---|---|---|---|---|---|---|
| 1 | Laravel Cache | ⭐ 33.8k | Laravel's standard cache system. Optimized for Laravel applications with various driver support and intuitive API | Overwhelming support from Laravel developers in 2025. High adoption rate due to framework integration convenience | MIT | Laravel Cache | Official |
| 2 | PhpRedis | ⭐ 10.2k | High-performance PHP Redis extension. C implementation providing maximum speed and full Redis feature support | First choice for performance-focused applications in 2025. Continued growth with Redis 7.0+ new feature support | PHP License | Extension | Official |
| 3 | Predis | ⭐ 7.7k | Pure PHP Redis client. Provides Redis access without external dependencies, achieving high compatibility and portability | Important choice for shared hosting environments in 2025. Continued demand due to pure PHP implementation advantages | MIT | Pure PHP Client | Official |
| 4 | Symfony Cache Component | ⭐ 4.2k | Symfony's comprehensive cache component. PSR-6/16 compliant with various adapters, tag-based invalidation, and stampede protection | Reigns as the pinnacle of PHP caching in 2025. Overwhelming other libraries with rich features and performance | MIT | PSR-6/16 Cache | Official |
| 5 | PhpFastCache | ⭐ 2.4k | Feature-rich and fast PHP cache library. 20+ driver support with PSR-6/16 compliance and rich event system | Gaining support with rich driver support in 2025. Continued adoption in projects with special requirements | MIT | PSR-6/16 Cache | Official |
| 6 | Scrapbook | ⭐ 317 | PHP cache library supporting various adapters. PSR-6/16 compliant with unified interface for Memcached, Redis, Couchbase, etc. | Adopted in projects requiring multi-provider support in 2025. Differentiated by flexibility and stampede protection | MIT | PSR-6/16 Cache | Official |