PHPackages                             dxw/session-handler-redis - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. dxw/session-handler-redis

AbandonedArchivedLibrary[Caching](/categories/caching)

dxw/session-handler-redis
=========================

0.2.0(2y ago)01.3kMITPHPPHP ^7.4||^8.1

Since Oct 29Pushed 2y ago11 watchersCompare

[ Source](https://github.com/dxw/session-handler-redis)[ Packagist](https://packagist.org/packages/dxw/session-handler-redis)[ Docs](https://github.com/dxw/session-handler-redis)[ RSS](/packages/dxw-session-handler-redis/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (4)Versions (8)Used By (0)

Redis Session Handler
=====================

[](#redis-session-handler)

This package allows you to replace PHP's default session handling with a Redis-based alternative.

How to use
----------

[](#how-to-use)

1. Require this package in your project: `composer require dxw/session-handler-redis`
2. Before you start your session, configure your Predis client, pass it to the Handler class, and call `session_set_handler()` with that Handler, e.g. ```
    $client = new \Predis\Client([
      'scheme' => 'tcp',
      'host'   => 'redis',
      'port'   => 6379,
    ]);

    session_set_save_handler(new \SessionHandlerRedis\Handler($client));
    ```
3. Then call `session_start()` when needed

Development
-----------

[](#development)

This package implements the script-to-rule-them-all pattern.

`script/update` to install the dependencies `script/test` to run the tests

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1001 days

Total

2

Last Release

1004d ago

PHP version history (2 changes)0.1.0PHP ^7.2

0.2.0PHP ^7.4||^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/370665?v=4)[Rob Skilling](/maintainers/RobjS)[@RobjS](https://github.com/RobjS)

![](https://avatars.githubusercontent.com/u/1659723?v=4)[jkeasley](/maintainers/jkeasley)[@jkeasley](https://github.com/jkeasley)

![](https://avatars.githubusercontent.com/u/4721596?v=4)[Matthew Passmore](/maintainers/matpassmore)[@matpassmore](https://github.com/matpassmore)

![](https://avatars.githubusercontent.com/u/71827088?v=4)[Serena Piccioni](/maintainers/serena-piccioni)[@serena-piccioni](https://github.com/serena-piccioni)

---

Top Contributors

[![RobjS](https://avatars.githubusercontent.com/u/370665?v=4)](https://github.com/RobjS "RobjS (27 commits)")[![mallorydxw](https://avatars.githubusercontent.com/u/2256130?v=4)](https://github.com/mallorydxw "mallorydxw (8 commits)")

---

Tags

composergovpresspackagistphp

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dxw-session-handler-redis/health.svg)

```
[![Health](https://phpackages.com/badges/dxw-session-handler-redis/health.svg)](https://phpackages.com/packages/dxw-session-handler-redis)
```

###  Alternatives

[predis/predis-async

Asynchronous version of Predis

366348.4k](/packages/predis-predis-async)[rhubarbgroup/redis-cache

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI.

51795.3k1](/packages/rhubarbgroup-redis-cache)[monospice/laravel-redis-sentinel-drivers

Redis Sentinel integration for Laravel and Lumen.

103830.5k](/packages/monospice-laravel-redis-sentinel-drivers)[jamescauwelier/psredis

Sentinel client for the popular php redis client

77392.9k5](/packages/jamescauwelier-psredis)[cache/predis-adapter

A PSR-6 cache implementation using Redis (Predis). This implementation supports tags

272.6M13](/packages/cache-predis-adapter)[symfony-bundles/redis-bundle

Symfony Redis Bundle

271.1M5](/packages/symfony-bundles-redis-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
