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. netom/php-riak-session

ActiveLibrary

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 2mo 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 32% 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

3322d 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

[nette/http

🌐 Nette Http: abstraction for HTTP request, response and session. Provides careful data sanitization and utility for URL and cookies manipulation.

48619.2M541](/packages/nette-http)[yiisoft/yii2-redis

Redis Cache, Session and ActiveRecord for the Yii framework

48011.7M245](/packages/yiisoft-yii2-redis)[laminas/laminas-session

Object-oriented interface to PHP sessions and storage

8122.7M113](/packages/laminas-laminas-session)[mezzio/mezzio-session

Session container and middleware for PSR-7 applications

24982.3k16](/packages/mezzio-mezzio-session)

PHPackages © 2026

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