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 6d 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

[bacon/bacon-qr-code

BaconQrCode is a QR code generator for PHP.

2.1k165.5M372](/packages/bacon-bacon-qr-code)[evenement/evenement

Événement is a very simple event dispatching library for PHP

1.3k147.0M319](/packages/evenement-evenement)[ircmaxell/random-lib

A Library For Generating Secure Random Numbers

84130.2M119](/packages/ircmaxell-random-lib)[cuyz/valinor

Dependency free PHP library that helps to map any input into a strongly-typed structure.

1.5k9.2M108](/packages/cuyz-valinor)[ashallendesign/short-url

A Laravel package for creating shortened URLs for your web apps.

1.4k1.9M4](/packages/ashallendesign-short-url)[webmozart/glob

A PHP implementation of Ant's glob.

25735.0M106](/packages/webmozart-glob)

PHPackages © 2026

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