PHPackages                             dorcyv/jwt-session-bundle - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. dorcyv/jwt-session-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

dorcyv/jwt-session-bundle
=========================

Provide a client side session with JWT tokens

v1.1(8y ago)16011MITPHPPHP &gt;=7.1

Since Apr 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dorcyv/JwtSessionBundle)[ Packagist](https://packagist.org/packages/dorcyv/jwt-session-bundle)[ RSS](/packages/dorcyv-jwt-session-bundle/feed)WikiDiscussions master Synced today

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

JwtSessionBundle
================

[](#jwtsessionbundle)

JwtSessionBundle is a PHP session replacement. Instead of use FileSystem, just use Json Web Token. Compatible with Symfony 3.4 and 4

Motivation
----------

[](#motivation)

The default PHP Session does not work in different servers using round robin or other algorithms. This occurs because PHP Session are saved by default in the file system.

There are implementations can save the session to REDIS or MEMCACHED, for example. But this requires to you create a new server to store this session and creates a single point of failure. To avoid this you have to create REDIS/MEMCACHED clusters.

But if you save the session into JWT Token you do not need to create a new server. Just to use.

Security information
--------------------

[](#security-information)

The JWT Token cannot be changed, but it can be read. This implementation save the JWT into a client cookie. Because of this do not store in the JWT Token sensible data like passwords.

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

[](#installation)

Run `composer require dorcyv/jwt-session-bundle`

Set the session handler in the `config/packages/framework.yaml` file:

```
framework:
    session:
        handler_id: Dorcyv\JwtSessionBundle\Session\JwtSessionHandler
```

That's it !

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

2995d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13641281?v=4)[Valérian Dorcy](/maintainers/dorcyv)[@dorcyv](https://github.com/dorcyv)

---

Top Contributors

[![dorcyv](https://avatars.githubusercontent.com/u/13641281?v=4)](https://github.com/dorcyv "dorcyv (12 commits)")

---

Tags

jwtsymfonysession

### Embed Badge

![Health badge](/badges/dorcyv-jwt-session-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dorcyv-jwt-session-bundle/health.svg)](https://phpackages.com/packages/dorcyv-jwt-session-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k181.3M2.2k](/packages/symfony-security-bundle)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k246.0M11.1k](/packages/symfony-framework-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)

PHPackages © 2026

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