PHPackages                             akrabat/rka-slim-session-middleware - 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. [Framework](/categories/framework)
4. /
5. akrabat/rka-slim-session-middleware

ActiveLibrary[Framework](/categories/framework)

akrabat/rka-slim-session-middleware
===================================

Simple session middleware for Slim Framework

3.0.0(3y ago)45261.6k—0%12[3 issues](https://github.com/akrabat/rka-slim-session-middleware/issues)[2 PRs](https://github.com/akrabat/rka-slim-session-middleware/pulls)BSD-3-ClausePHPPHP &gt;=7.4

Since Jan 7Pushed 2y ago4 watchersCompare

[ Source](https://github.com/akrabat/rka-slim-session-middleware)[ Packagist](https://packagist.org/packages/akrabat/rka-slim-session-middleware)[ Docs](http://github.com/akrabat/rka-slim-session-middleware)[ RSS](/packages/akrabat-rka-slim-session-middleware/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (9)Used By (0)

RKA Slim Session Middleware
===========================

[](#rka-slim-session-middleware)

Middleware for [Slim Framework](https://www.slimframework.com/) that starts a session. Also provides a useful `Session` class.

Installation
------------

[](#installation)

```
composer require "akrabat/rka-slim-session-middleware"

```

Usage
-----

[](#usage)

Add middleware as usual:

```
$app->add(new \RKA\SessionMiddleware(['name' => 'MySessionName']));

```

### RKA\\Session

[](#rkasession)

You can use `\RKA\Session` to access session variables. The main thing that this gives you is defaults and an OO interface:

```
$app->get('/', function ($request, $response) {
    $session = new \RKA\Session();

    // Get session variable:
    $foo = $session->get('foo', 'some-default');
    $bar = $session->bar;

    // Set session variable:
    $session->foo = 'this';
    $session->set('bar', 'that');

    return $response;
});

```

if you need to destroy the session, you can do:

```
\RKA\Session::destroy();

```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 92.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 ~393 days

Recently: every ~686 days

Total

8

Last Release

1341d ago

Major Versions

1.x-dev → 2.0.02016-04-18

2.0.0-RC1 → 3.0.02022-07-19

PHP version history (3 changes)1.0PHP &gt;=5.4

2.0.0PHP &gt;=5.5

3.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33135?v=4)[Rob Allen](/maintainers/akrabat)[@akrabat](https://github.com/akrabat)

---

Top Contributors

[![akrabat](https://avatars.githubusercontent.com/u/33135?v=4)](https://github.com/akrabat "akrabat (35 commits)")[![hgati](https://avatars.githubusercontent.com/u/6913728?v=4)](https://github.com/hgati "hgati (2 commits)")[![odan](https://avatars.githubusercontent.com/u/781074?v=4)](https://github.com/odan "odan (1 commits)")

---

Tags

middlewareslimsession

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/akrabat-rka-slim-session-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/akrabat-rka-slim-session-middleware/health.svg)](https://phpackages.com/packages/akrabat-rka-slim-session-middleware)
```

###  Alternatives

[slim/csrf

Slim Framework 4 CSRF protection PSR-15 middleware

3512.0M87](/packages/slim-csrf)[slim/http-cache

Slim Framework HTTP cache middleware and service provider

1162.8M26](/packages/slim-http-cache)[davidepastore/slim-validation

A slim middleware for validation based on Respect/Validation

174221.6k3](/packages/davidepastore-slim-validation)[yiisoft/session

A session service, PSR-15 session middleware, and a flash message service which helps use one-time messages.

20301.8k10](/packages/yiisoft-session)[bnf/slim3-psr15

PSR-15 middleware support for Slim Framework v3

10176.6k4](/packages/bnf-slim3-psr15)[pavlakis/slim-cli

Making a mock GET request through the CLI and enabling the same application entry point on CLI scripts.

3691.4k3](/packages/pavlakis-slim-cli)

PHPackages © 2026

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