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

Jws Ecdsa Laravel Package

jdr/jws-ecdsa

A PHP package for signing and verifying JSON Web Signatures (JWS) with ECDSA. It provides a straightforward API for generating compact JWS tokens and validating signatures in Laravel and other PHP applications, useful for secure token exchange and standards-based JWT/JWS workflows.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Unblocking ECDSA-based token flows. This package lets the existing lcobucci/jwt library sign and verify ES256/ES384/ES512 tokens instead of only RS256/HS256. That capability is the gate on several product features: "Sign in with Apple," OIDC integrations with providers that publish EC JWKS, compact tokens for mobile/REST clients where smaller key and signature size matter, and service-to-service auth in environments that mandate ECDSA.
  • Roadmap input for identity and interoperability work. If ECDSA support is on the roadmap — external OIDC IdPs, a published JWKS endpoint, token-size reduction for edge/mobile — this is a candidate implementation detail to scope, or to explicitly rule out in favor of a newer lcobucci/jwt release. Either way it closes an open question cheaply.
  • Build-vs-buy on a very small crypto surface. The package is thin: it wires ECDSA signing into an existing signer interface. The honest options are (a) adopt it, (b) vendor/fork it, or (c) write a first-party signer behind an internal interface. Because it is crypto-adjacent, the real decision is who owns the code path and its tests, not license or cost.
  • Concrete use cases it supports: stateless API auth with EC-signed JWTs, verifying tokens from third-party IdPs that use EC keys, publishing a JWKS for downstream consumers, and satisfying security/compliance requirements that specify ECDSA over RSA for new integrations.
  • A cheap way to defer a larger identity investment. Adopting or vendoring it now preserves the option to move to native library support later at near-zero switching cost, so it does not force a platform-level commitment.

When to Consider This Package

Consider it when:

  • You are already committed to lcobucci/jwt and pinned to a version that lacks native ECDSA signers. Verify this first — later 4.x releases add ECDSA support, which makes this dependency unnecessary.
  • You specifically need P-256/P-384/P-521 curves and the ES256/ES384/ES512 identifiers, and you can tolerate a very small, single-maintainer dependency.
  • You are willing to vendor or fork it. At 1 star, 0 dependents, and one maintainer, treat it as source code you are adopting, not a supply-chain dependency you can lean on: pin the commit, review the crypto, add test vectors, and wrap it behind an internal signing abstraction.
  • The alternative is writing ECDSA JWS handling yourself — in which case reading this as a reference implementation is a reasonable, low-risk starting point.

Look elsewhere when:

  • Your lcobucci/jwt version already ships ECDSA signers — use the library directly, add no dependency.
  • You need maintained, audited crypto with a support path: prefer web-token/jwt-framework (broad algorithm and JWK support) or firebase/php-jwt (ES256, far larger adoption).
  • You require HSM/KMS-backed keys, key rotation tooling, or FIPS-oriented guarantees — this package provides none of that, and neither do its small peers.
  • Your security posture forbids low-adoption transitive dependencies. With 0 dependents and 1 star there is effectively no community signal that the code runs in production anywhere.
  • You are not already on lcobucci/jwt; adopting it in order to use this package is disproportionate.

How to Pitch It (Stakeholders)

For executives (one paragraph): This is a small, MIT-licensed PHP add-on that lets our existing JWT library sign and verify tokens using ECDSA instead of RSA. That matters only if the roadmap includes ECDSA-dependent work — most commonly "Sign in with Apple," OIDC providers that publish EC keys, or token-size constraints on mobile. The capability is real and cheap to obtain, but the package itself has essentially no adoption (one star, no dependents, a single maintainer), so it is not something to depend on blindly. Recommended framing: it is an enabler, not a strategic dependency. Treat it as reference code — vendor or fork it, wrap it behind our own interface, and keep the option to replace it with the upstream library's built-in support or a better-maintained alternative at near-zero switching cost. Net: low effort, low lock-in, value contingent on the identity roadmap.

For engineering (the ask): Confirm whether our pinned lcobucci/jwt version already supports ES256/ES384/ES512 — if it does, we close this out with no new dependency. If it doesn't, adopt the package's logic by vendoring or forking it rather than consuming it from Packagist; review the signature-encoding (DER vs. fixed-width R‖S) and curve/hash pairing, add test vectors from a known-good source, pin the commit, and expose it only through our internal signer abstraction so the JWT library and algorithm provider remain independently replaceable. Validate round-trips against at least one external verifier, not just self-verification. Flag any requirement for KMS/HSM-backed keys, rotation, or JWKS distribution early — neither this package nor the underlying library covers that, and it would change the scope materially.

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.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource