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 Signature Algorithm Eddsa Laravel Package

web-token/jwt-signature-algorithm-eddsa

EdDSA (Ed25519) signature algorithm support for the web-token/jwt-framework. Adds Ed25519 signing and verification to PHP JWT applications, letting you issue and validate compact JWS tokens with modern elliptic-curve cryptography.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Token format / crypto-agility roadmap. Choosing EdDSA (Ed25519, per RFC 8037) over RS256/ES256 is a protocol-level decision that touches every token issuer and verifier you own. This package is the concrete PHP-side enabler, so it belongs in the "can we actually ship this?" column of that decision, not in an abstract security review.
  • Build vs. buy on signature verification. Writing Ed25519 verification correctly is a footgun; this is a thin, MIT-licensed adapter into a mature JWT framework. Adopting it is usually cheaper than a bespoke signer, and it keeps the algorithm behind an interface you can swap.
  • Token size and mobile/edge latency budgets. Ed25519 keys (32 bytes) and signatures (64 bytes) are materially smaller than RSA-2048+, and signing is fast. If your product has a token-in-every-request path on constrained clients or high-volume gateways, this is a measurable win worth modeling.
  • Feature scoping for auth/interop. Useful when a customer or partner explicitly requires EdDSA — e.g., verifying third-party JWTs signed with Ed25519, or issuing tokens to a modern consumer that already supports it. Less useful as a "we should modernize crypto" initiative on its own; that is a roadmap item, not a ticket.
  • Cryptographic migration sequencing. If a migration off RSA is on the roadmap, this package lets you issue both algorithms during a transition window — a dual-signing period is the lowest-risk path and is a product decision (how long do we support old verifiers?) rather than an engineering one.

When to Consider This Package

  • You are on web-token/jwt-framework 2.x and need EdDSA as a pluggable algorithm; or you are assembling a minimal dependency set and only need this one algorithm.
  • Your verifiers and consumers are known to support EdDSA — confirm this per-tenant before committing. Many legacy OAuth/OIDC providers, older enterprise gateways, and some managed API platforms are RS256-only.
  • Symmetric HMAC (HS256) is not acceptable because tokens cross trust boundaries — that is the usual reason to reach for an asymmetric algorithm at all.
  • You need smaller tokens or lower signing cost at volume, and you are willing to take on the interop verification work.

Look elsewhere when:

  • FIPS 140 / regulated environments. Ed25519 is not FIPS-approved. Use ES256 or RS256; this is a hard stop, not a tradeoff.
  • You are on web-token/jwt-library 3.x or later, where algorithm support was consolidated into the main library. Adding this split package there is dependency sprawl for zero benefit.
  • The only requirement is "verify a token" from a single well-known IdP — use that IdP's advertised algorithm and avoid introducing a new one.
  • You need verification in non-PHP edges (older JS runtimes, some WASM/embedded targets) where Ed25519 support is inconsistent.

Adoption cautions given the signals: 15 stars and 0 listed dependents is not a reason to reject it — it is a subtree-split of a reputable monorepo, not a standalone project — but it is a reason to confirm the maintainer and version lineage, pin the version, and check that it is not a deprecated artifact of the 2.x split. Treat the low opportunity score as "niche, not strategic," and do not let it appear on an exec roadmap as an initiative.

How to Pitch It (Stakeholders)

To executives: This is a small, free (MIT), low-lock-in component that unlocks one specific capability — issuing and verifying Ed25519-signed tokens. It is not a strategic bet and does not need budget; it needs a decision about whether we want that capability, which is really a question about which partners and clients we must interoperate with. The upside is smaller, faster tokens; the cost is interop testing. The main reason to say no is regulatory: if we need FIPS-approved cryptography, this is out.

To engineering: It is a thin, isolated adapter conforming to the framework's algorithm interface — low blast radius, swappable, and easy to cover with RFC 8037 test vectors. Backed by libsodium in modern PHP. Before adopting, confirm version lineage against the monorepo, confirm the consolidated library isn't the better dependency for our version, and confirm every downstream verifier actually supports EdDSA. If any consumer is RS256-only, plan a dual-signing window rather than a cutover.

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