Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Lexik Jose Bridge Laravel Package

north69/lexik-jose-bridge

A bridge integrating Lexik JWT authentication with JOSE-based token handling, letting PHP applications sign, verify, and manage JSON Web Tokens through a clean, interoperable layer built on standard JOSE libraries.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Security remediation roadmap. The core use case is retiring an abandoned JWT library (e.g., namshi/jose) in favor of web-token/jwt-framework without rewriting the authentication layer. This is a "close a CVE/abandoned-dependency finding on a deadline" decision, not a feature decision.
  • Upgrade sequencing. If the team is pinned to an older LexikJWTAuthenticationBundle major version and a full bundle upgrade is blocked by other constraints (Symfony version, custom authenticators, deadline), this bridge is the cheap intermediate step that decouples "get off the abandoned crypto library" from "upgrade the auth bundle."
  • Build vs. buy for glue code. Adopting it is a bet that ~a few hundred lines of adapter code are not worth owning. The counter-decision — vendor a small internal adapter — is legitimate given the package's adoption profile (see below).
  • Algorithm agility. Moving to web-token/jwt-framework unlocks newer signing algorithms (EdDSA, PS256/384/512) and key-management tooling. That supports product-level decisions like multi-tenant key rotation, per-client signing keys, or compliance asks that the legacy library can't satisfy.
  • Stack fit (important caveat). Despite being framed as a Laravel/PHP package, this is Symfony-ecosystem glue — it bridges a Symfony bundle. It has no role in a Laravel application; Laravel teams evaluating JWT should be routed to tymon/jwt-auth, Sanctum, or Passport instead. A PM decision to "use this in Laravel" is a category error worth catching early.

When to Consider This Package

Adopt only when all of the following hold:

  • You run Symfony with LexikJWTAuthenticationBundle on a version that still resolves the legacy JOSE library, and you have a concrete reason to move to web-token/jwt-framework (security finding, PHP-version blocker, algorithm requirement).
  • Upgrading lexik/jwt-authentication-bundle itself to a release that natively uses web-token is not achievable inside the current window — due to Symfony version, custom guards/authenticators, or a hard release freeze.
  • You are willing to treat the dependency as temporary and fork-ready: pin the exact version, read the source (it is small), and keep an exit ticket in the backlog.

Look elsewhere when:

  • Greenfield project or already on a modern Lexik release — use the bundle's native JWT stack; a bridge adds a hop for no gain.
  • Laravel, Lumen, or non-Symfony PHP — not applicable.
  • You need vendor assurance. Zero stars, zero dependents, and no visible maintainer breadth means no support SLA, no security-response process, and a bus factor of roughly one. For an authentication-critical path, that is a real risk, not a stylistic preference.
  • The upgrade you're avoiding is actually small. A bridge to dodge a half-day bundle upgrade is technical debt with a maintenance tail; measure the upgrade first.
  • You need more than it does. It is a wiring/DI adapter, not a feature set — no key rotation UI, no revocation, no observability. You still own all of that.

How to Pitch It (Stakeholders)

For executives (one paragraph): We have a security exposure in our authentication stack because one of our JWT libraries is no longer maintained. There are two fixes: a full upgrade of the authentication bundle, which touches login for every API client and needs a regression window, or a small adapter that swaps only the crypto library underneath. This package is the adapter. It is a tactical, low-cost way to close the finding this quarter while we schedule the proper upgrade — not a long-term dependency. Because it is a very small, low-adoption open-source project, we would pin the version and be prepared to maintain our own copy if needed; the code footprint is small enough that this is a low-cost insurance policy.

For engineering: Evaluate as a spike, not a commitment. Confirm it supports our exact Lexik and Symfony versions, run the existing auth test suite against it, pin the version in composer.json, and record an exit criterion — "remove once Lexik is upgraded to a release that uses web-token natively." Budget for reading the source (it is small) and for a fallback fork. Do not introduce it into any Laravel service; this is Symfony-only glue.

Bottom line for the roadmap: a narrow, disposable migration aid. Justify it on risk reduction and schedule, never on capability or ecosystem momentum — and pair the decision with a dated follow-up to remove it.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox