PHPackages                             geggleto/sessionmiddleware - 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. geggleto/sessionmiddleware

Abandoned → [https://github.com/geggleto/psr7-session](/?search=https%3A%2F%2Fgithub.com%2Fgeggleto%2Fpsr7-session)Library[Framework](/categories/framework)

geggleto/sessionmiddleware
==========================

Inject Session Data into Request Object

0.2.0(10y ago)8212MITPHP

Since Nov 13Pushed 10y ago3 watchersCompare

[ Source](https://github.com/geggleto/SessionMiddleware)[ Packagist](https://packagist.org/packages/geggleto/sessionmiddleware)[ RSS](/packages/geggleto-sessionmiddleware/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Session Middleware
------------------

[](#session-middleware)

This middleware injects your middleware contents into the Request Object.

Usage
-----

[](#usage)

```
$app->add(new \Geggleto\Middleware\Session('session_name'));
```

Example
-------

[](#example)

```
//In your Session you have
[
    'user' => 1
]

//Then in your Request Object, if you want your User ID...

$request->getAttribute('user') === 1
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

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

Every ~1 days

Total

4

Last Release

3879d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f941aecd52e3f8ac94dbe9b714801c7adc767acc32644d3ee6a4efeded84c5e?d=identicon)[geggleto](/maintainers/geggleto)

---

Top Contributors

[![geggleto](https://avatars.githubusercontent.com/u/4027602?v=4)](https://github.com/geggleto "geggleto (8 commits)")

---

Tags

middlewareframeworkslim

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/geggleto-sessionmiddleware/health.svg)

```
[![Health](https://phpackages.com/badges/geggleto-sessionmiddleware/health.svg)](https://phpackages.com/packages/geggleto-sessionmiddleware)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[slim/csrf

Slim Framework 4 CSRF protection PSR-15 middleware

3512.1M100](/packages/slim-csrf)[slim/http-cache

Slim Framework HTTP cache middleware and service provider

1163.1M32](/packages/slim-http-cache)[davidepastore/slim-validation

A slim middleware for validation based on Respect/Validation

170227.3k3](/packages/davidepastore-slim-validation)

PHPackages © 2026

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