PHPackages                             ray/aura-session-module - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ray/aura-session-module

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ray/aura-session-module
=======================

Aura Session module for Ray.Di

1.3.0(7mo ago)063.6k↓20.8%1[2 PRs](https://github.com/ray-di/Ray.AuraSessionModule/pulls)1MITPHPPHP ^8.0CI passing

Since Sep 5Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/ray-di/Ray.AuraSessionModule)[ Packagist](https://packagist.org/packages/ray/aura-session-module)[ RSS](/packages/ray-aura-session-module/feed)WikiDiscussions 1.x Synced 2d ago

READMEChangelog (5)Dependencies (4)Versions (11)Used By (1)

Ray.AuraSessionModule
=====================

[](#rayaurasessionmodule)

[![Continuous Integration](https://github.com/ray-di/Ray.AuraSessionModule/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/ray-di/Ray.AuraSessionModule/actions/workflows/continuous-integration.yml)

An [Aura.Session](https://github.com/auraphp/Aura.Session) module for [Ray.Di](https://github.com/ray-di/Ray.Di).

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

[](#installation)

### Composer install

[](#composer-install)

```
$ composer require ray/aura-session-module

```

### Module install

[](#module-install)

```
use Ray\Di\AbstractModule;
use Ray\AuraSessionModule\AuraSessionModule;

class AppModule extends AbstractModule
{
    protected function configure(): void
    {
        $this->install(new AuraSessionModule);
    }
}
```

Usage
-----

[](#usage)

```
use Aura\Session\Session;
use MyVendor\MyPackage\MyClass;

class Index extends ResourceObject
{
    public function __construct(
        private readonly Session $session
    ) {}

    public function onGet() : static
    {
        // get a _Segment_ object
        $segment = $this->session->getSegment(MyClass::class);

        // try to get a value from the segment;
        // if it does not exist, return an alternative value
        echo $segment->get('foo'); // null
        echo $segment->get('baz', 'not set'); // 'not set'
    }
}
```

###  Health Score

54

—

FairBetter than 96% of packages

Maintenance79

Regular maintenance activity

Popularity31

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 86% 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 ~620 days

Recently: every ~285 days

Total

7

Last Release

234d ago

PHP version history (2 changes)1.2.0PHP ^7.2 || ^8.0

1.3.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/db4fc75ffc631168d0d7143b6f2c24b1534dfb921212bd851c026c5cbbb1344d?d=identicon)[koriym](/maintainers/koriym)

---

Top Contributors

[![koriym](https://avatars.githubusercontent.com/u/529021?v=4)](https://github.com/koriym "koriym (43 commits)")[![apple-x-co](https://avatars.githubusercontent.com/u/8497012?v=4)](https://github.com/apple-x-co "apple-x-co (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![fiahfy](https://avatars.githubusercontent.com/u/7123916?v=4)](https://github.com/fiahfy "fiahfy (1 commits)")

---

Tags

auraray-modulesessionsession

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ray-aura-session-module/health.svg)

```
[![Health](https://phpackages.com/badges/ray-aura-session-module/health.svg)](https://phpackages.com/packages/ray-aura-session-module)
```

###  Alternatives

[laminas/laminas-session

Object-oriented interface to PHP sessions and storage

8524.2M131](/packages/laminas-laminas-session)[bryanjhv/slim-session

Session middleware and helper for Slim framework 4.

2411.0M16](/packages/bryanjhv-slim-session)[plasticbrain/php-flash-messages

A modern take on PHP session-based flash messages

184229.8k8](/packages/plasticbrain-php-flash-messages)[rairlie/laravel-locking-session

Provide session locking in Laravel

92486.9k1](/packages/rairlie-laravel-locking-session)[vcian/pulse-active-sessions

A Laravel Pulse card to show active user session.

11582.7k](/packages/vcian-pulse-active-sessions)[odan/session

A Slim session handler

64222.9k24](/packages/odan-session)

PHPackages © 2026

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