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

Jwt Framework Laravel Package

web-token/jwt-framework

A comprehensive PHP library for JSON Web Tokens, implementing JWS, JWE, JWK, JWT, and related RFCs. It offers signing, encryption, key management, and token validation with a clean, standards-compliant API suitable for any PHP project.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy on identity-critical crypto. This package is a mature, MIT-licensed implementation of JOSE (JWS, JWE, JWK) with a dedicated maintainer and a documented security-disclosure process. That removes the temptation to hand-roll token signing/encryption — a category of code where the failure mode is silent and catastrophic.
  • Authentication strategy. Informs whether you build on standard JOSE artifacts (signed/encrypted tokens, key sets, key rotation) versus a vendor IdP or a thinner library. The package's coverage of JWE and JWK means you can support encrypted claims and rotating key material without a second dependency.
  • Compliance and security roadmap. The release history shows active remediation of real attack classes — algorithm confusion, Bleichenbacher/padding oracles, PBKDF2 CPU-amplification DoS, ChaCha20-Poly1305 tag verification. That is a concrete input to security review, pentest remediation planning, and "are we exposed?" conversations.
  • Interoperability commitments. If you must exchange tokens with partners, mobile clients, or other stacks (OIDC, OAuth2 assertions, signed webhooks), the breadth of algorithm support here is a differentiator versus a minimal HS256-only helper.
  • Feature scoping. Tells you what you do not need to build: key set parsing, JWK thumbprints, serializer formats, algorithm negotiation, Symfony bundle wiring and console commands for key generation.
  • Risk register entry. The single-maintainer concentration and the fact that encryption primitives are an ongoing liability (four GHSA advisories in one patch release) belong in your dependency risk log with a defined upgrade cadence.

When to Consider This Package

Adopt when:

  • You need more than HMAC-signed tokens — RSA/ECDSA/Ed25519 signatures, encrypted (JWE) payloads, or JWK set handling with rotation.
  • You are integrating with OIDC/OAuth2 or third-party token issuers and need standards-compliant verification of externally produced tokens.
  • You run Laravel or Symfony and want a maintained, battle-tested library rather than custom crypto; the Symfony bundle provides configuration and CLI tooling, and the core is framework-agnostic enough to wrap in a Laravel service provider.
  • Your security posture requires documented advisory handling and prompt patching — the 4.x line ships security fixes with CVE references.
  • You need fine-grained algorithm control (allow-lists, key-use constraints, JWK thumbprints) for multi-tenant or partner-facing flows.

Look elsewhere when:

  • You only need opaque session tokens or simple HMAC JWTs — a lighter, narrower library reduces surface area for the same outcome.
  • You want a fully managed identity provider; this is a crypto toolkit, not an auth platform. You still own token lifecycle, revocation, refresh flows, and storage.
  • Your team cannot commit to tracking releases — the security history shows that stale pins are genuinely dangerous here.
  • You require vendor-backed SLAs; support is maintainer-driven and community/sponsor funded.

How to Pitch It (Stakeholders)

To executives: This is the industry-standard PHP implementation of the token format underpinning modern authentication (OIDC, OAuth2, API authorization). It is MIT-licensed, free, and actively security-maintained — the last patch release addressed four published vulnerabilities, including an algorithm-confusion flaw that lets attackers forge tokens if a library gets the check wrong. Choosing it means we buy proven cryptography instead of writing our own, which lowers breach risk and shortens time-to-market for partner integrations and encrypted-token features. The trade-off is a single primary maintainer, so we mitigate with a pinned version, a scheduled upgrade cadence, and a fallback plan.

To engineering: It gives you JWS, JWE, and JWK in one dependency with a wide algorithm matrix, a Symfony bundle with config and console commands for key management, and PSR-cache-friendly JWK set caching. It is well-documented (web-token.spomky-labs.com), versioned with clear patch/minor lines, and its recent releases are almost entirely security hardening plus dependency hygiene — a good signal of maintenance discipline. Watch for: algorithm allow-listing must be explicit on our side, key rotation and PBES2 iteration bounds need deliberate configuration, and we should avoid deprecated compression. Wrap it behind our own token service interface so a future swap is contained.

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.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
adachsoft/php-code-style