PHPackages                             skt-t1-byungi/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. skt-t1-byungi/session

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

skt-t1-byungi/session
=====================

Session Manager

0.0.3(9y ago)028[1 PRs](https://github.com/skt-t1-byungi/Session/pulls)MITPHPPHP &gt;=5.6

Since Sep 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/skt-t1-byungi/Session)[ Packagist](https://packagist.org/packages/skt-t1-byungi/session)[ Docs](https://github.com/skt-t1-byungi/Session)[ RSS](/packages/skt-t1-byungi-session/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (5)Used By (0)

SktT1Byungi/Session
===================

[](#sktt1byungisession)

PHP Session manager (with non blocking handler)

[![Latest Stable Version](https://camo.githubusercontent.com/2f62047a58cd81a64b4a6246caaa94c428bd221c1529d9c9e172cc24914f93c9/68747470733a2f2f706f7365722e707567782e6f72672f736b742d74312d6279756e67692f73657373696f6e2f762f737461626c65)](https://packagist.org/packages/skt-t1-byungi/session)[![Total Downloads](https://camo.githubusercontent.com/a757f94f3a2da9fea70ff156c18034e20a88becc8bf639701a08ac10bf8cfe2a/68747470733a2f2f706f7365722e707567782e6f72672f736b742d74312d6279756e67692f73657373696f6e2f646f776e6c6f616473)](https://packagist.org/packages/skt-t1-byungi/session)[![License](https://camo.githubusercontent.com/05921fc3a8ce97c822acd608bb1ae32fabb9c766176214e0df2ccda9dca1b7b1/68747470733a2f2f706f7365722e707567782e6f72672f736b742d74312d6279756e67692f73657373696f6e2f6c6963656e7365)](https://packagist.org/packages/skt-t1-byungi/session)

Require
-------

[](#require)

PHP 5.6 &lt;= \*

Simple Example
--------------

[](#simple-example)

```
use SktT1Byungi\Session\Session;

 Session::manager()->start();
 Session::set('aaa', '111');

 var_dump(Session::get('aaa') === $_SESSION['aaa']);
 // true
```

Usage
-----

[](#usage)

manager()
---------

[](#manager)

```
 Session::manager()->id("id")->name("name")->start();
 // session_id("id");
 // session_id("name");
 // session_start();

 Session::manager()->close()->destroy();
 // session_write_close();
 // session_destroy();

 Session::manager()->settings([
    'cookie_httponly' => true,
    'use_only_cookies' => true,
 ]);
 // ini_set("session.cookie_httponly", true);
 // ini_set("session.use_only_cookies", true);

 Session::manager()->handler(new CustomHandler)->start();
 // used custom handler
```

helpers
-------

[](#helpers)

```
Session::set('aaa', [
    'bbb' => [
        'ccc' => 111,
        'ddd' => 222,
    ],
]);
Session::set('eee', '333');
Session::set('fff', '444');

echo Session::get('aaa.bbb.ccc');
// 111

var_dump(Session::has('ccc'), Session::has('eee'));
// false, true

var_dump(Session::only(['eee', 'fff']));
// ['eee' => '333', 'fff' => '444']

var_dump(Session::except(['aaa']));
// ['eee' => '333', 'fff' => '444']

Session::forget('aaa.bbb'); //or Session::remove('aaa.bbb');
// unset($_SESSION['aaa']['bbb']);
```

details links :

collection
----------

[](#collection)

```
Session::set('aaa', [
    [
        "name" => "bangi",
        "position" => "god",
    ],
    [
        "name" => "faker",
        "position" => "human",
    ],
    [
        "name" => "duke",
        "position" => "human",
    ],
    [
        "name" => "wolf",
        "position" => "pig",
    ],
]);

var_dump(Session::collect('aaa')->where('position', 'human')->all());
// [
//     1 => [
//         "name" => "faker",
//         "position" => "human",
//     ],
//     2 => [
//         "name" => "duke",
//         "position" => "human",
//     ],
// ]
```

details links :

PSR-7 Middleware (\_\_invoke, Closure)
--------------------------------------

[](#psr-7-middleware-__invoke-closure)

when reaches the middleware point, session start.

Slim3 Example
-------------

[](#slim3-example)

```
$app->add(Session::manager()->handler(new CustomHandler)->id('mySess')->middleware());
```

etc..
-----

[](#etc)

session blocking() 때문에 괜찮은 핸들러 찾아보다가 먼가 조금씩들 아쉬워서 그냥 새로 맹듬... 세션락문제 없고 나중에 핸들러교체 되면서 글로벌세션 변수 사용도 가능하면서 간단하고 또 컴포저로 쓸수 있는걸로...

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

3

Last Release

3522d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5bdf7e30ba2bb986f59d888fb9c53a73536fede75408acfb4fbb3fb0ff4feca2?d=identicon)[skt-t1-byungi](/maintainers/skt-t1-byungi)

---

Top Contributors

[![skt-t1-byungi](https://avatars.githubusercontent.com/u/16894698?v=4)](https://github.com/skt-t1-byungi "skt-t1-byungi (33 commits)")

---

Tags

non-blockingsession

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/skt-t1-byungi-session/health.svg)

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

###  Alternatives

[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[moonshine/moonshine

Laravel administration panel

1.3k253.1k78](/packages/moonshine-moonshine)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M341](/packages/psalm-plugin-laravel)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M275](/packages/illuminate-pipeline)[flarum/core

Delightfully simple forum software.

251.4M2.2k](/packages/flarum-core)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)

PHPackages © 2026

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