web-token/jwt-key-mgmt
PHP component for managing JSON Web Keys (JWK) and key sets (JWKSet): load, create, convert, and organize keys for JWT signing and encryption across symmetric and asymmetric algorithms. Part of the Web-Token JWT framework, with utilities for key set handling and selection.
kid-based selection, and rotation are commodity but security-critical. This is the "adopt" option for the JWK layer; building it in-house is hard to justify./.well-known/jwks.json, accepting tokens from multiple issuers, migrating legacy HS256 tokens to asymmetric keys, evaluating Ed25519.Consider it when:
kid/algorithm from a set, plus rotation with overlapping validity windows.web-token/jwt-framework, or need control that higher-level packages hide.Look elsewhere when:
tymon/jwt-auth fit better.To executives: "We need to sign and verify tokens. Instead of writing crypto and key rotation ourselves, we adopt a small, MIT-licensed, standards-compliant component. It reduces security and audit risk and avoids a multi-week build — but it is a building block, so plan roughly one to two weeks of integration, tests, and key-custody design. It also unlocks key rotation and multi-tenant signing, which enterprise buyers ask about."
To engineering: "Spec-compliant JWK/JWKS handling: parsing, generation, kid-based selection, rotation, and multi-algorithm support, composable with the rest of the JWT Framework. Caveats: no Laravel service provider, the split repo's star count understates real adoption, and it does not encode or decode tokens by itself. Proposal: spike it behind a KeyRepository interface, wrap it in our own service provider, keep private keys in a secret manager, and pin the minor version."
How can I help you explore Laravel packages today?