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

ActiveLibrary

flatphp/session
===============

session component

v3.0.1(4y ago)134MITPHPPHP &gt;=8.1

Since May 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/flatphp/session)[ Packagist](https://packagist.org/packages/flatphp/session)[ RSS](/packages/flatphp-session/feed)WikiDiscussions master Synced 3d ago

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

Sutile\\Session
===============

[](#sutilesession)

This is a light session component;

Install
-------

[](#install)

```
composer require "flatphp/session"
```

Useage
------

[](#useage)

```
// Based on cache

use Flatphp\Cache\Cache;
Cache::init(array(
    'store' => array(
        'driver' => 'redis',
        'host' => 'localhost',
        'port' => 6379
    )
));

Session::init(array(
    'lifetime' => 1440,
    'handler' => 'cache'
));

Session::set('test', 1);
echo Session::get('test');
Session::delete('test');
echo Session::getId();
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity75

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~574 days

Total

4

Last Release

1566d ago

Major Versions

v2.0.1 → v3.0.02022-01-30

PHP version history (2 changes)v2.0.0PHP &gt;=5.5

v3.0.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

session

### Embed Badge

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

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

###  Alternatives

[nette/http

🌐 Nette Http: abstraction for HTTP request, response and session. Provides careful data sanitization and utility for URL and cookies manipulation.

48619.2M541](/packages/nette-http)[yiisoft/yii2-redis

Redis Cache, Session and ActiveRecord for the Yii framework

48011.7M245](/packages/yiisoft-yii2-redis)[laminas/laminas-session

Object-oriented interface to PHP sessions and storage

8122.7M113](/packages/laminas-laminas-session)[aura/session

Provides session management functionality, including lazy session starting, session segments, next-request-only ("flash") values, and CSRF tools.

2041.2M69](/packages/aura-session)[mezzio/mezzio-session

Session container and middleware for PSR-7 applications

24982.3k16](/packages/mezzio-mezzio-session)

PHPackages © 2026

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