PHPackages                             gobline/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. gobline/session

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

gobline/session
===============

Session component

v2.0.0(10y ago)21712BSD-3-ClausePHPPHP &gt;=5.6.0

Since Nov 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/gobline/session)[ Packagist](https://packagist.org/packages/gobline/session)[ Docs](https://github.com/gobline)[ RSS](/packages/gobline-session/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (5)Used By (2)

Session component
=================

[](#session-component)

`Gobline\Session\NamespacedSession` allows to **segregate all session data into different namespaces**. A default namespace exists for those who only want one namespace for all their session data.

Usage
-----

[](#usage)

```
$session = new Gobline\Session\NamespacedSession('MyNamespace');

$session->set('foo', 'bar');

$session->get('foo'); // returns "bar"

$session->get('corge'); // "corge" not found, throws \InvalidArgumentException

$session->get('corge', 'grault'); // "corge" not found, returns default "grault" value

$session->remove('foo');

$session->clearAll(); // removes all session variables from "MyNamespace" namespace

$session->setNamespace('AnotherNamespace'); // switch namespace
```

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

[](#installation)

You can install the Session component using the dependency management tool [Composer](https://getcomposer.org/). Run the *require* command to resolve and download the dependencies:

```
composer require gobline/session

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

3862d ago

Major Versions

v1.0.2 → v2.0.02015-12-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/1564a230fe2f5125b0504cf6b6fe1e829face1a5d20ec663b3b8d22843312c7d?d=identicon)[mdecaffmeyer](/maintainers/mdecaffmeyer)

---

Tags

sessiongobline

### Embed Badge

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

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

###  Alternatives

[laminas/laminas-session

Object-oriented interface to PHP sessions and storage

8223.7M127](/packages/laminas-laminas-session)[bryanjhv/slim-session

Session middleware and helper for Slim framework 4.

233990.5k16](/packages/bryanjhv-slim-session)[plasticbrain/php-flash-messages

A modern take on PHP session-based flash messages

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

Provide session locking in Laravel

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

A Laravel Pulse card to show active user session.

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

A Slim session handler

64215.2k23](/packages/odan-session)

PHPackages © 2026

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