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

ActiveLibrary

madeorsk/session
================

Easy session handling in PHP.

1.0(5y ago)03.0k↓100%MITPHPPHP &gt;= 7.0

Since May 26Pushed 5y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Session
=======

[](#session)

Easy Session handling in PHP.

Quick start
-----------

[](#quick-start)

```
use Session\Session;

// Initialize session.
$session = new Session();

$session->write("name", "this is a text value"); // Save "this is a text value" in the session.

// ...

echo $session->read("name"); // Will echo "this is a text value".
echo $session->read("undefined_name", "my default value"); // Will echo "my default value".

// ...

$value = $session->delete("name"); // Delete the value of the session variable "name" in the session and return it.
```

Full documentation
------------------

[](#full-documentation)

Full API documentation is currently a work in progress. You can still see the full documentation of the different methods in the source code.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

2174d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/748d80e5500bbc9d6e14ee53817c2a03bc025c7df17e9f06fe2ec9f221b45e52?d=identicon)[Madeorsk](/maintainers/Madeorsk)

---

Top Contributors

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

---

Tags

phpsessionsession-managementsession

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/madeorsk-session/health.svg)](https://phpackages.com/packages/madeorsk-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.2M540](/packages/nette-http)[yiisoft/yii2-redis

Redis Cache, Session and ActiveRecord for the Yii framework

48011.7M244](/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.2M67](/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)
