PHPackages                             toyokumo/jwt-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. toyokumo/jwt-bundle

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

toyokumo/jwt-bundle
===================

Symfony support for generating and interpreting JWT token.

v1.5.0(8mo ago)028.6k↓31%2[1 PRs](https://github.com/toyokumo/JWTBundle/pulls)MITPHPPHP ^8.0CI passing

Since Feb 12Pushed 8mo ago8 watchersCompare

[ Source](https://github.com/toyokumo/JWTBundle)[ Packagist](https://packagist.org/packages/toyokumo/jwt-bundle)[ Docs](https://github.com/toyokumo/JWTBundle)[ RSS](/packages/toyokumo-jwt-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (8)Used By (0)

JWTBundle
=========

[](#jwtbundle)

[![Test](https://github.com/toyokumo/JWTBundle/workflows/Test/badge.svg?branch=main)](https://github.com/toyokumo/JWTBundle/workflows/Test/badge.svg?branch=main)

Generating and Interpreting JWT token.

Usage
-----

[](#usage)

### JWTService

[](#jwtservice)

1. Set JWK information via .yml file.

```
# key_info.yml
parameters:
jwt_keys:
# for HS256
  key_name_for_HS256_key:
    kid: current_kid
    alg: HS256
    secret: 'secret string with more than 32 chars.'
# for RS256 or ES256
  key_name_for_RS256_or_ES256_key:
    kid: current_kid
    alg: RS256 or ES256
    filename: 'public or private key filename'
    passphrase: 'passphrase to decode key'

```

2. Place .yml and key files in the same directory.
3. Set arguments

```
# jwt.yml
services:
  Toyokumo\JWTBundle\JWTService:
    arguments:
      $keyDirPath: 'path/to/key_info.yml and key files'
      $jwkInfos: '%jwt_keys%' # JWK information defined in key_info.yml

```

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance60

Regular maintenance activity

Popularity29

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~416 days

Total

6

Last Release

256d ago

PHP version history (3 changes)1.0PHP ^7.4

1.1PHP ^7.4|^8.0

v1.5.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e967d5aed09fd1313ae8e68c7d9fef5c5aa73d8371c81a8395cf7edf738f932?d=identicon)[toyokumo](/maintainers/toyokumo)

---

Top Contributors

[![smith-30](https://avatars.githubusercontent.com/u/13186083?v=4)](https://github.com/smith-30 "smith-30 (4 commits)")[![syunta](https://avatars.githubusercontent.com/u/3379346?v=4)](https://github.com/syunta "syunta (4 commits)")[![aknorsh](https://avatars.githubusercontent.com/u/45809545?v=4)](https://github.com/aknorsh "aknorsh (2 commits)")[![teruchi](https://avatars.githubusercontent.com/u/248690?v=4)](https://github.com/teruchi "teruchi (1 commits)")

---

Tags

symfonybundle

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[web-token/jwt-framework

JSON Object Signing and Encryption library for PHP and Symfony Bundle.

94818.9M77](/packages/web-token-jwt-framework)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

50570.7k1](/packages/web-auth-webauthn-framework)[scheb/2fa

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

578630.7k1](/packages/scheb-2fa)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

63397.4k6](/packages/web-auth-webauthn-symfony-bundle)[scheb/2fa-bundle

A generic interface to implement two-factor authentication in Symfony applications

7014.0M62](/packages/scheb-2fa-bundle)[web-token/jwt-bundle

JWT Bundle of the JWT Framework.

132.5M7](/packages/web-token-jwt-bundle)

PHPackages © 2026

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