# predis/predis

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

Repository: https://github.com/predis/predis
Canonical: https://ross.abutalabs.com/products/predis
Homepage: https://github.com/predis/predis/wiki
Language: PHP
License: MIT
License Family: permissive
Topics: predis, redis, redis-sentinel, redis-cluster, php
Last push: 2026-08-14T23:09:01+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 98, longevity 100
- inputs: {"age_days": 6143, "days_push": 19, "days_rel": 19, "gap_med": 14, "n_releases_24m": 14}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7780, forks 996 (observed 2026-08-28T04:10:04.951623+00:00)

## What it is
Predis is a flexible and feature-complete Redis/Valkey client library written entirely in PHP, requiring no native extension. It supports Redis 3.0 through 8.0, clustering, sentinel, replication, pipelining, transactions, and Lua scripting.

## Use cases
- connect to redis from php
- use redis for caching in a php application
- work with redis cluster or sentinel in php
- run redis transactions and lua scripts from php
- pipeline redis commands
- store session data in redis from php

## When to choose
- you need a pure-PHP Redis client without installing a C extension
- you need broad Redis version support including clustering and sentinel
- you want customizable commands and connection backends

## When to avoid
- you need maximum performance from a native extension like phpredis
- your project does not use PHP

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, caching
- domain: databases, backend, web-development, developer-tools
- platform: php, cross-platform
- tags: redis, valkey, redis-cluster, redis-sentinel, key-value-store, composer

## Member repositories
- predis/predis (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:04.951623+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:34:43.982432+00:00, confidence not recorded.
  - readme: https://github.com/predis/predis (fetched 2026-08-28T04:10:04.951623+00:00, sha 8e8b1f9e37e3)
  - homepage: https://github.com/predis/predis/wiki (fetched 2026-08-29T08:30:58.132275+00:00, sha e7b18f5a0df5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
