PHPackages                             dogoda/sessions - 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. dogoda/sessions

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

dogoda/sessions
===============

A non-blocking session manager

10PHP

Since Nov 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dogoda/sessions)[ Packagist](https://packagist.org/packages/dogoda/sessions)[ RSS](/packages/dogoda-sessions/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

sessions
========

[](#sessions)

A non-blocking session handler for PHP

Quick Examples
--------------

[](#quick-examples)

```
$session = new \Dogoda\Sessions\SessionInstance("my-app");
$session->set("current-status", 4);
$currentStatus = $session->get("current-status");
$session->exists("current-status"); #true
```

Avoid common key clashes:

```
$session->set("user", "Mark");

$backend = $session->createNamespace("backend");
$backend->set("user", "Caroline");

$session->get("user"); # "Mark"
$backend->get("user"); # "Caroline"
```

Store one-time flash messages:

```
$session->setFlash("message", "Your profile has been updated");

$session->getFlash("message"); # "Your profile has been updated";

$session->getFlash("message"); # null;
```

There is also a static class you can use with all the features above:

```
use \Dogoda\Sessions\Session;
Session::name("my-apps");

Session::set("current-status", 4);
$currentStatus = Session::get("current-status");

$session::set("user", "Mark");
$session::exits("user"); #true
$session::exits("password"); #false
$backend = $session::createNamespace("backend");
$backend::set("user", "Caroline");

$session::get("user"); # "Mark"
$backend::get("user"); # "Caroline"
```

Inspired by duncan3dc/sessions

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![netesy](https://avatars.githubusercontent.com/u/2408968?v=4)](https://github.com/netesy "netesy (1 commits)")

---

Tags

libraryphp7sessions

### Embed Badge

![Health badge](/badges/dogoda-sessions/health.svg)

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

###  Alternatives

[tiesa/ldap

LDAP made easy &amp; practical to use in PHP

5796.2k1](/packages/tiesa-ldap)[jazzsequence/dashboard-changelog

Adds a GitHub release widget to your WordPress dashboard for a public GitHub repository.

151.2k](/packages/jazzsequence-dashboard-changelog)[ryangjchandler/laravel-bunny-fonts

Manage Bunny Fonts programatically in your Laravel projects.

161.0k](/packages/ryangjchandler-laravel-bunny-fonts)

PHPackages © 2026

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