predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 22 minutes ago
Added to GitGenius on September 8th, 2026
Created on November 7th, 2009
Open Issues & Pull Requests: 29 (+0)
GitHub issues: Enabled
Number of forks: 996
Total Stargazers: 7,778 (+0)
Total Subscribers: 202 (+0)

Repository Insights (GitGenius)

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

Predis is a flexible and feature-complete Redis and Valkey client for PHP.

The tool addresses the need for PHP applications to interact with Redis and Valkey servers across a range of versions and deployment topologies. It provides a client library that abstracts Redis protocol communication, allowing developers to execute commands without manually constructing protocol messages. The approach centers on flexibility through pluggable components: custom connection classes enable different network backends, keyspace distributors allow customizable sharding strategies, and a system for defining custom commands lets users extend or override default behavior.

Predis suits PHP projects requiring Redis integration where flexibility and broad version support matter. It handles single-node connections as well as clustered deployments through both client-side sharding and native redis-cluster support. The tool also covers sentinel-based replication setups. Developers should choose it if they need transparent key prefixing, command pipelining across clusters, transaction and Lua scripting abstractions, or iterator-based scanning operations. The library supports connections via TCP/IP with optional TLS/SSL encryption or UNIX domain sockets, and connections are established lazily on first command use with optional persistence.

The project maintains active engagement with its codebase, regularly addressing issues and pull requests. Development shows consistent responsiveness to user-reported problems and feature requests. The maintainers demonstrate a commitment to supporting a wide range of Redis versions and keeping pace with new Redis features, as evidenced by recent additions like support for Hinted Hash Templates in newer Redis releases.