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

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

pyrsmk/session
==============

A simple session manager

0.2.2(9y ago)0177MITJavaScriptPHP &gt;=5.3.0

Since Jan 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/pyrsmk/Session)[ Packagist](https://packagist.org/packages/pyrsmk/session)[ RSS](/packages/pyrsmk-session/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (8)Used By (0)

Session 0.2.2
=============

[](#session-022)

A simple session manager based on [Chernozem](https://github.com/pyrsmk/Chernozem).

Install
-------

[](#install)

Pick up the source or install it with [Composer](https://getcomposer.org/) :

```
composer require pyrsmk/session

```

If you're not installing it with Composer, don't forget to load its dependencies too : [Chernozem](https://github.com/pyrsmk/Chernozem).

Managing session variables
--------------------------

[](#managing-session-variables)

As mentioned above, this library is based on Chernozem. Therefore, its use is pretty simple :

```
// Create the session object
$session = new Session();
// Define a session variable
$session['user_id'] = $user_id;
// Print a previously defined session variable
echo $session['user_id'];
// Remove a variable
unset($session['user_id']);
```

If needed, you can add a namespace to your session by specifying it at instantiation :

```
$session = new Session('my_namespace');
```

License
-------

[](#license)

Session is released under the [MIT license](http://dreamysource.mit-license.org).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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 ~105 days

Recently: every ~96 days

Total

7

Last Release

3557d ago

### Community

Maintainers

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

---

Tags

session

### Embed Badge

![Health badge](/badges/pyrsmk-session/health.svg)

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

###  Alternatives

[laminas/laminas-session

Object-oriented interface to PHP sessions and storage

8524.2M132](/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)
