PHPackages                             antidot-fw/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. antidot-fw/session

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

antidot-fw/session
==================

Antidot Framework session library

0.2.0(5y ago)1451[1 issues](https://github.com/antidot-framework/session-middleware/issues)BSD-2-ClausePHPPHP ^7.4|^8.0CI failing

Since Apr 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/antidot-framework/session-middleware)[ Packagist](https://packagist.org/packages/antidot-fw/session)[ GitHub Sponsors](https://github.com/kpicaza)[ RSS](/packages/antidot-fw-session/feed)WikiDiscussions 1.x.x Synced 2d ago

READMEChangelog (1)Dependencies (9)Versions (4)Used By (0)

Antidot Session Middleware
==========================

[](#antidot-session-middleware)

[![link-packagist](https://camo.githubusercontent.com/c666339d7f1e4fc9a16a36eba4b0ccf947e4538a4b9f4f444a553bcc80a5b982/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e7469646f742d66772f73657373696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/antidot-fw/session)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/532d4a08627e54773acec50e47f6b425e0156d57d03f33d37aaafd0cffe6eb9c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e7469646f742d6672616d65776f726b2f73657373696f6e2d6d6964646c65776172652f6261646765732f7175616c6974792d73636f72652e706e673f623d312e782e78)](https://scrutinizer-ci.com/g/antidot-framework/session-middleware/?branch=1.x.x)[![Infection MSI](https://camo.githubusercontent.com/1e79f3c8c6a86469638cdbc9f97e15d4115be0ec613ddada5eade463e8c8a31a/68747470733a2f2f62616467652e737472796b65722d6d757461746f722e696f2f6769746875622e636f6d2f616e7469646f742d6672616d65776f726b2f73657373696f6e2d6d6964646c65776172652f312e782e78)](https://infection.github.io)[![Code Coverage](https://camo.githubusercontent.com/131a61ecc6ae6f122a6c3c1cb235f7d36d8897119af56d160be36e6014e90de4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e7469646f742d6672616d65776f726b2f73657373696f6e2d6d6964646c65776172652f6261646765732f636f7665726167652e706e673f623d312e782e78)](https://scrutinizer-ci.com/g/antidot-framework/session-middleware/?branch=1.x.x)[![type-coverage](https://camo.githubusercontent.com/217ba73806fa71cfecd2e82ab427b0f21140e744cce06fed35002452550d8e7f/68747470733a2f2f73686570686572642e6465762f6769746875622f616e7469646f742d6672616d65776f726b2f72656163742d6672616d65776f726b2f636f7665726167652e737667)](https://shepherd.dev/github/antidot-framework/react-framework)[![Build Status](https://camo.githubusercontent.com/a8f8ec1fbe869df2b9f8e0f58caacf807f689c0a8c1e1481c2020115fee7883f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616e7469646f742d6672616d65776f726b2f73657373696f6e2d6d6964646c65776172652f6261646765732f6275696c642e706e673f623d312e782e78)](https://scrutinizer-ci.com/g/antidot-framework/session-middleware/build-status/1.x.x)

PSR-15 middleware that allows having session inside the request attributes.

Install
-------

[](#install)

Install using composer, by default it uses an implementation of [Aura Session](https://github.com/auraphp/Aura.Session).

```
composer require antidot-fw/session
```

Config
------

[](#config)

Using Antidot Framework Starter, it will work after adding the middleware to the pipeline. Also, you can use it in any PSR-15 compatible middleware pipeline using PSR-11 container.

```
