PHPackages                             pinga/pingsess - 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. pinga/pingsess

ActiveLibrary

pinga/pingsess
==============

A PHP session handler

v0.1.1(3y ago)011MITPHPPHP ^8.1

Since Mar 10Pushed 3y agoCompare

[ Source](https://github.com/getpinga/pingsess)[ Packagist](https://packagist.org/packages/pinga/pingsess)[ Docs](https://github.com/getpinga/pingsess)[ RSS](/packages/pinga-pingsess/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (14)Versions (3)Used By (0)

Pingsess
========

[](#pingsess)

[![Latest Version on Packagist](https://camo.githubusercontent.com/14d59b11ff8f10e4fd37c38d16bcf7c509985517387351e60f1e398bfab5f4f6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6f64616e2f73657373696f6e2e737667)](https://github.com/odan/session/releases)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Build Status](https://github.com/odan/session/workflows/build/badge.svg)](https://github.com/odan/session/actions)[![Code Coverage](https://camo.githubusercontent.com/9bef8ae3f5b6cc6b23f3cddd7a9502560d266516bb2b03a52c523c5730eb6e02/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f64616e2f73657373696f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/odan/session/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/49600d3e515fb03da249380db53151a52d657b7278c2c216a9c64736093c1bf6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f64616e2f73657373696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/odan/session/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/e3c5f0b6a52d343f20bb2235150d2bb94b66ec877b4516271e147e8c689af184/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f64616e2f73657373696f6e2e737667)](https://packagist.org/packages/odan/session/stats)

A middleware (PSR-15) oriented session and flash message handler for PHP, based on the wonderful [odan/session](https://github.com/odan/session). For basic documentation, check:

Common example
--------------

[](#common-example)

```
// Start the session
$session->start();

// Set a session variable
$session->set('user_id', 123);

// Get a session variable
$user_id = $session->get('user_id');

// Check if a session variable exists
if ($session->has('user_id')) {
    // ...
}

// Delete a session variable
$session->delete('user_id');

// Clear all session variables
$session->clear();

// Regenerate the session ID
$session->regenerateId();

// Destroy the session
$session->destroy();

```

Specific examples
-----------------

[](#specific-examples)

```
$config = [
    'name' => 'app',
];

// Create a standard session handler
$session = new \Odan\Session\PhpSession($config);

```

```
use Odan\Session\MemorySession;

$session = new MemorySession();

```

```
use League\Flysystem\Filesystem;
use League\Flysystem\Adapter\Local;
use Odan\Session\FilesystemSession;

// Create a Filesystem instance
$adapter = new Local(__DIR__.'/sessions');
$filesystem = new Filesystem($adapter);

// Create a FilesystemSession instance
$session = new FilesystemSession($filesystem, [
    'name' => 'my_session',
]);

```

```
use Odan\Session\RedisSession;
use Redis;

$redis = new Redis();
$redis->connect('127.0.0.1', 6379);

$session = new RedisSession($redis, [
    'name' => 'my_app_session',
    'lifetime' => 3600,
]);

```

```
use Odan\Session\MemcachedSession;
use Memcached;

$memcached = new Memcached();
$memcached->addServer('localhost', 11211);

$session = new MemcachedSession($memcached, [
    'name' => 'my_app_session',
    'lifetime' => 3600,
]);

```

```
use Odan\Session\PdoSession;
use PDO;

$dsn = 'mysql:host=localhost;dbname=my_database';
$username = 'my_username';
$password = 'my_password';

$pdo = new PDO($dsn, $username, $password);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

$session = new PdoSession($pdo, [
    'name' => 'my_app_session',
    'lifetime' => 3600,
    'db_table' => 'my_sessions',
]);

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.5% 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 ~0 days

Total

2

Last Release

1165d ago

### Community

Maintainers

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

---

Top Contributors

[![odan](https://avatars.githubusercontent.com/u/781074?v=4)](https://github.com/odan "odan (219 commits)")[![getpinga](https://avatars.githubusercontent.com/u/121483313?v=4)](https://github.com/getpinga "getpinga (54 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (3 commits)")

---

Tags

slimsession

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pinga-pingsess/health.svg)

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[odan/session

A Slim session handler

63203.2k19](/packages/odan-session)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

144179.3k3](/packages/neos-flow-development-collection)[windwalker/framework

The next generation PHP framework.

25639.1k1](/packages/windwalker-framework)[odan/slim-session

A Slim session handler

638.4k](/packages/odan-slim-session)

PHPackages © 2026

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