PHPackages                             dasprid/helios - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. dasprid/helios

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

dasprid/helios
==============

PSR-7 authentication middleware

1.0.1(8y ago)309873BSD-2-ClausePHPPHP ^7.1

Since Sep 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/DASPRiD/Helios)[ Packagist](https://packagist.org/packages/dasprid/helios)[ RSS](/packages/dasprid-helios/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (9)Versions (7)Used By (0)

Helios
======

[](#helios)

[![Build Status](https://camo.githubusercontent.com/aa05d41a1de307720601f41df5dbf2015df8f773cc7c4e57523326bdb5cf767f/68747470733a2f2f7472617669732d63692e6f72672f444153505269442f48656c696f732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/DASPRiD/Helios)[![Coverage Status](https://camo.githubusercontent.com/a72dcff910b1c2b66ded9f2734969f9dbf46786ebcf220f3f41161a8e13ebade/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f444153505269442f48656c696f732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/DASPRiD/Helios?branch=master)[![Dependency Status](https://camo.githubusercontent.com/94058e397f3c49133f7d4880fa8d6c6dd893d1d46aaef18e2d133eddf2a2266d/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3537643134396666386431626164303034653531623933662f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/57d149ff8d1bad004e51b93f)[![Reference Status](https://camo.githubusercontent.com/9e158ea6e0181035671fafb0a753210e2b8b247119808d03f973c60f82e8c6e4/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f646173707269643a68656c696f732f7265666572656e63655f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/php/dasprid:helios/references)[![Latest Stable Version](https://camo.githubusercontent.com/05dd7bfb56064d36b3a8a82806dfeb9cfdee5b63e63d15295f0094462169a0ea/68747470733a2f2f706f7365722e707567782e6f72672f646173707269642f68656c696f732f762f737461626c65)](https://packagist.org/packages/dasprid/helios)[![Total Downloads](https://camo.githubusercontent.com/fd34b7809b36af00dddcba6e5595c0f562015704c635d0552f71694a5f9fc132/68747470733a2f2f706f7365722e707567782e6f72672f646173707269642f68656c696f732f646f776e6c6f616473)](https://packagist.org/packages/dasprid/helios)[![License](https://camo.githubusercontent.com/af072e7cf391c5b2b0b3e1780ec65621d3e12fed6942ed57d929d070ccd2785f/68747470733a2f2f706f7365722e707567782e6f72672f646173707269642f68656c696f732f6c6963656e7365)](https://packagist.org/packages/dasprid/helios)

Helios is an authentication middleware embracing PSR-7. It's purpose is to keep the identity completely request dependent, as well as avoiding the use of server-side session through the use of [JSON Web Tokens](https://jwt.io/).

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

[](#installation)

Install via composer:

```
$ composer require dasprid/helios
```

Getting started (for [Expressive](https://github.com/zendframework/zend-expressive))
------------------------------------------------------------------------------------

[](#getting-started-for-expressive)

### JWT cookies

[](#jwt-cookies)

This library uses Pikkuleipa, a cookie manager utilizing JSON Web Tokens. In order to start working with Helios, you need to [configure Pikkuleipa first](https://github.com/DASPRiD/Pikkuleipa).

### Import the factory config

[](#import-the-factory-config)

Create a file named `helios.global.php` or similar in your autoloading config directory:

```
