A flexible and feature-complete Redis/Valkey client for PHP 7.2+ with support for clustering, replication, and advanced features.
Predis is a feature-rich Redis and Valkey client library for PHP, enabling seamless communication with Redis servers for caching, session storage, and real-time data handling. It solves the need for a reliable, high-performance PHP client that supports advanced Redis features like clustering, replication, and transactions.
PHP developers building applications that require interaction with Redis or Valkey for caching, message queues, or real-time data storage, especially those needing support for clustering, replication, or custom command handling.
Developers choose Predis for its extensive feature set, flexibility in configuration, and strong community support. It stands out by offering comprehensive Redis protocol support, including RESP3, and extensible architecture for custom needs.
A flexible and feature-complete Redis/Valkey client for PHP.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports Redis versions 3.0 to 8.0 and the Valkey fork, ensuring long-term server compatibility and future-proofing against forks, as stated in the main features.
Offers TCP/IP with TLS/SSL, UNIX domain sockets, and persistent connections, with detailed examples for secure mTLS authentication since Redis 8.6, enhancing deployment flexibility.
Provides high-level abstractions for clustering, replication, transactions, and Lua scripting, simplifying complex operations like client-side sharding and Sentinel integration.
Allows customization of connection backends, command definitions, and client behavior through options like 'commands' and 'connections', enabling tailored solutions.
As a pure PHP library, it incurs higher latency and memory usage compared to C-based extensions like phpredis, which can impact high-throughput applications.
Setting up advanced features like Redis Cluster with client-side sharding or Sentinel-based replication requires intricate configuration and deep Redis knowledge, increasing setup time.
Relies on Composer for installation and may introduce additional package dependencies, which can be cumbersome for minimal or legacy PHP environments without modern toolchains.