PHPackages                             zaphyr-org/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. [Security](/categories/security)
4. /
5. zaphyr-org/session

ActiveLibrary[Security](/categories/security)

zaphyr-org/session
==================

A session handler repository for maintaining user state across multiple requests.

1.1.3(11mo ago)22.0k—5.1%1MITPHPPHP &gt;=8.1CI passing

Since Oct 2Pushed 3mo ago1 watchersCompare

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

READMEChangelog (6)Dependencies (8)Versions (7)Used By (1)

[![License](https://camo.githubusercontent.com/349e45184afa76ed47bb327168e2ca4bb433b1feb3e07b8564c1c0ea734823ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a61706879722d6f72672f73657373696f6e)](https://camo.githubusercontent.com/349e45184afa76ed47bb327168e2ca4bb433b1feb3e07b8564c1c0ea734823ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a61706879722d6f72672f73657373696f6e)[![Version](https://camo.githubusercontent.com/b7cf805072c58bd12aeecb09b38502300195ba691b7363d6ef8f11916d796fcb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a61706879722d6f72672f73657373696f6e)](https://camo.githubusercontent.com/b7cf805072c58bd12aeecb09b38502300195ba691b7363d6ef8f11916d796fcb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a61706879722d6f72672f73657373696f6e)[![Issues](https://camo.githubusercontent.com/83906e18cb6cec6b078d810e6208976af042fddddf18ffefd6f69a564a9301dc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7a61706879722d6f72672f73657373696f6e)](https://camo.githubusercontent.com/83906e18cb6cec6b078d810e6208976af042fddddf18ffefd6f69a564a9301dc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7a61706879722d6f72672f73657373696f6e)[![Tests](https://github.com/zaphyr-org/session/actions/workflows/tests.yml/badge.svg)](https://github.com/zaphyr-org/session/actions/workflows/tests.yml/badge.svg)[![Codecov](https://camo.githubusercontent.com/755d6d5514a4c3f1c5460157b80420943376b982bcc1d4a9d91c989d8dc24fa4/68747470733a2f2f636f6465636f762e696f2f6769746875622f7a61706879722d6f72672f73657373696f6e2f67726170682f62616467652e7376673f746f6b656e3d354530534747524a4b3726)](https://codecov.io/github/zaphyr-org/session)

Session
=======

[](#session)

A session handler repository for maintaining user state across multiple requests.

System Requirements
-------------------

[](#system-requirements)

You need `PHP => 8.1` but the latest stable version of PHP is recommended.

This package is continuously tested on the following PHP versions:

- PHP 8.1
- PHP 8.2
- PHP 8.3
- PHP 8.4
- PHP 8.5

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

[](#installation)

It's recommended that you use [Composer](https://getcomposer.org/) to install the session repository.

```
composer require zaphyr-org/session
```

Documentation
-------------

[](#documentation)

You can read the full documentation [here](https://zaphyr.org/docs/repositories/latest/session).

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Issues
------

[](#issues)

Bug reports and feature requests can be submitted on the [GitHub Issue Tracker](https://github.com/zaphyr-org/session/issues).

Security
--------

[](#security)

If you discover security related issues, please email  **instead of using the issue tracker!**

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://zaphyr.org/contributions) for details.

Code of Conduct
---------------

[](#code-of-conduct)

Please see [CODE OF CONDUCT](https://zaphyr.org/contributions#content-code-of-conduct) for details.

License
-------

[](#license)

This project is licensed under the MIT license. See [LICENSE](LICENSE.md) for more information.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance67

Regular maintenance activity

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

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

Recently: every ~147 days

Total

6

Last Release

348d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25499f6685a498dbadd9b45769a40dc4c792434b54f4d434ce44a432f0b18741?d=identicon)[merloxx](/maintainers/merloxx)

---

Top Contributors

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

---

Tags

csrfsessionsession-handlersession-managementsessionflashinputcsrfsession handler

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[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)[paragonie/anti-csrf

Paragon Initiative's Anti-CSRF Security Library

307200.6k5](/packages/paragonie-anti-csrf)[owasp/csrf-protector-php

CSRF protector php, a standalone php library for csrf mitigation in web applications. Easy to integrate in any php web app.

222348.3k4](/packages/owasp-csrf-protector-php)[selective/samesite-cookie

Secure your site with SameSite cookies

10144.0k](/packages/selective-samesite-cookie)[kunststube/csrfp

A signed token generator for cross site request forgery protection.

52209.5k1](/packages/kunststube-csrfp)[yiisoft/session

A session service, PSR-15 session middleware, and a flash message service which helps use one-time messages.

20311.6k13](/packages/yiisoft-session)

PHPackages © 2026

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