ns / token-bundle
This bundle provides a JWT token integration with symfony
Package info
github.com/NobletSolutions/TokenBundle
Type:symfony-bundle
pkg:composer/ns/token-bundle
4.0.4
2025-07-05 06:25 UTC
Requires
- php: >=8.3
- ext-json: *
- codercat/jwk-to-pem: ^1.1
- lcobucci/clock: ^3.0
- lcobucci/jwt: ^4.0|^5.0
- symfony/framework-bundle: ^6.0|^7.0
- symfony/http-client: ^6.0|^7.0
- twig/twig: ^2.0|^3.0
Requires (Dev)
- liip/rmt: ^1.7
- phpunit/phpunit: ^9.0
- rector/rector: ^1.0
This package is auto-updated.
Last update: 2026-02-27 16:06:36 UTC
README
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: <some random string> key: <another random string> issuer: <string (often the site source)> 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.