# phpredis/phpredis

A PHP extension for Redis

Repository: https://github.com/phpredis/phpredis
Canonical: https://ross.abutalabs.com/products/phpredis
Language: C
License: NOASSERTION
License Family: other
Topics: php, redis, redis-cluster, cluster, keydb, valkey
Last push: 2026-08-27T00:07:16+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 23, longevity 100
- inputs: {"age_days": 5650, "days_push": 7, "days_rel": 300, "gap_med": 198.5, "n_releases_24m": 3}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10232, forks 2136 (observed 2026-08-28T04:10:41.147493+00:00)

## What it is
PhpRedis is a PHP extension written in C that provides an API for communicating with Redis key-value stores. It also supports Redis-compatible servers such as Valkey, Dragonfly, and KeyDB, including Redis Cluster.

## Use cases
- connect to redis from php
- use redis as a php cache backend
- php redis client extension
- work with redis cluster in php
- store php sessions in redis
- talk to valkey or keydb from php

## When to choose
- you need a fast, native C PHP extension for Redis rather than a pure-PHP client
- you use Redis Cluster, Valkey, KeyDB, or Dragonfly
- you want the de facto standard Redis client for PHP

## When to avoid
- you need a pure-PHP client without the ability to compile extensions
- you use a language other than PHP
- you only need a simple cache and prefer a higher-level abstraction library

## Facets
- artifact type: library
- maturity: active
- function: database-driver, caching
- domain: databases, backend, web-development
- platform: php, windows
- tags: redis, redis-cluster, valkey, keydb, dragonfly, php-extension, c-extension, key-value-store, linux, macos

## Member repositories
- phpredis/phpredis (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:41.147493+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:19:28.940242+00:00, confidence not recorded.
  - readme: https://github.com/phpredis/phpredis (fetched 2026-08-28T04:10:41.147493+00:00, sha 0702814ebad1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
