PHPackages                             netom/php-riak-session - 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. [Database &amp; ORM](/categories/database)
4. /
5. netom/php-riak-session

ActiveLibrary[Database &amp; ORM](/categories/database)

netom/php-riak-session
======================

PHP session handler with Riak backend

1.0.0(9y ago)03MITPHPPHP &gt;=5.4.0

Since Apr 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/netom/php-riak-session)[ Packagist](https://packagist.org/packages/netom/php-riak-session)[ Docs](https://github.com/netom/php-riak-session)[ RSS](/packages/netom-php-riak-session/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

php-riak-sessionhandler
=======================

[](#php-riak-sessionhandler)

Riak-session is a very simple session handler plugin for PHP.

It uses the HTTP interface and the CURL extension to communicate with a Riak cluster.

The session handler only works with one node, no failover capability is provided here. Use HaProxy or an application-local Riak node to increase availability.

If you'd like to make use of the gc() method of the save handler, you have to configure Riak with a backend that supports secondary indexes. Alternatively, you can setup BitCask (for example) with expiry to automatically retire old sessions.

Usage
-----

[](#usage)

Use composer to include 'netom/php-riak-session'.

Use the code below to register a riak session handler instance, and get the actual handler instance in a signle line:

```
    $h = \Netom\Session\Riak::register();

```

See the code for parameters.

The default is to connect to the localhost, and to the 'default' bucket type, and 'session' bucket.

The time() is stored to a t\_int indexed field for every session.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3369d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/072a2df3c2ea839646b2f91158af79a5879bd915a6ee4c326ac48007c1a199d5?d=identicon)[netom](/maintainers/netom)

---

Top Contributors

[![netom](https://avatars.githubusercontent.com/u/695195?v=4)](https://github.com/netom "netom (3 commits)")

---

Tags

sessionriak

### Embed Badge

![Health badge](/badges/netom-php-riak-session/health.svg)

```
[![Health](https://phpackages.com/badges/netom-php-riak-session/health.svg)](https://phpackages.com/packages/netom-php-riak-session)
```

###  Alternatives

[aplus/session

Aplus Framework Session Library

2211.6M3](/packages/aplus-session)[apix/cache

A thin PSR-6 cache wrapper with a generic interface to various caching backends emphasising cache taggging and indexing to Redis, Memcached, PDO/SQL, APC and other adapters.

117548.2k6](/packages/apix-cache)[basho/riak

Official Riak client for PHP

161248.3k7](/packages/basho-riak)[stefangabos/zebra_session

A drop-in replacement for PHP's default session handler which stores session data in a MySQL database, providing better performance, better security and protection against session fixation and session hijacking

174116.9k2](/packages/stefangabos-zebra-session)[jenssegers/mongodb-session

A MongoDB session driver for Laravel 4, 5, 6, 7 and 8

75314.1k3](/packages/jenssegers-mongodb-session)[cache/cache-bundle

Symfony 2 bundle providing integration between PSR-6 compliant cache services and the framework. It supports cache for sessions, routing and Doctrine

43440.2k](/packages/cache-cache-bundle)

PHPackages © 2026

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