PHPackages                             ns/token-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. ns/token-bundle

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

ns/token-bundle
===============

This bundle provides a JWT token integration with symfony

4.0.4(10mo ago)211.2kMITPHPPHP &gt;=8.3CI failing

Since Feb 9Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/NobletSolutions/TokenBundle)[ Packagist](https://packagist.org/packages/ns/token-bundle)[ RSS](/packages/ns-token-bundle/feed)WikiDiscussions master Synced 1mo ago

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

Installation
============

[](#installation)

```
  composer require ns/token-bundle
```

Edit AppKernel.php and add the bundle

```
    new NS\TokenBundle\NSTokenBundle(),
```

Edit app/config/config.yml

```
    ns_token:
        generator:
            id:
            key:
            issuer:
            short_expiration: 3600
            long_expiration: 2592000
            signer: Lcobucci\JWT\Signer\Rsa\Sha256 #default
```

You can use your own signer by implementing the Lcobucci\\JWT\\Signer interface.

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance60

Regular maintenance activity

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

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

Recently: every ~252 days

Total

36

Last Release

318d ago

Major Versions

0.1.4 → 1.0.32017-07-31

1.0.x-dev → 2.0.02021-07-05

2.0.4 → 3.0.02021-08-12

2.0.x-dev → 3.0.22022-03-16

3.0.x-dev → 4.0.02022-09-29

PHP version history (5 changes)0.1.0PHP &gt;=5.5.9

2.0.0PHP &gt;=7.4

4.0.0PHP ^7.4||8.0.\*||8.1.\*

4.0.3PHP ^7.4||^8.0

4.0.4PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/bdde326649ba5e420cda4f48355ac3d7f93e0c9b183818fcfc409cbcf51a961d?d=identicon)[gnat](/maintainers/gnat)

![](https://www.gravatar.com/avatar/fac4100d94ea33234f843fa897f647c4bc8f9b1b43d7e93ed59f7cf49415f487?d=identicon)[mwoynarski](/maintainers/mwoynarski)

---

Top Contributors

[![gnat42](https://avatars.githubusercontent.com/u/325591?v=4)](https://github.com/gnat42 "gnat42 (72 commits)")

---

Tags

bundlejwtjwt-tokenphpsymfonysymfony-bundle

###  Code Quality

TestsPHPUnit

Static AnalysisRector

### Embed Badge

![Health badge](/badges/ns-token-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ns-token-bundle/health.svg)](https://phpackages.com/packages/ns-token-bundle)
```

###  Alternatives

[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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