uma/psr7-hmac-bundle
A PSR-7 HMAC bundle for signing and verifying HTTP requests between services. It adds shared-secret authentication to PSR-7 middleware flows, helping protect APIs from tampering and unauthorized access, and supports validating incoming requests or signing outgoing calls.
Consider it only if:
Look elsewhere — or don't adopt at all — if:
lexik/jwt-authentication-bundle, firebase/php-jwt, league/oauth2-server, or delegating signature verification to an API gateway.To executives: This is a small, archived Symfony component for verifying HMAC-signed HTTP requests. The function matters — proving a request genuinely came from a trusted partner — but this specific package has had no vendor support since 2017 and almost no adoption. My recommendation is not to add it as a dependency. We should either implement signing and verification ourselves (roughly a sprint-day of engineering) or use a maintained authentication library. The cost of adopting it is low today and high later: security code we cannot patch is a standing compliance and incident-response liability, and it adds a dependency our auditors will ask about.
To engineering: The bundle is thin glue between a PSR-7 HMAC signer and Symfony Security — a signature validator plus an authentication provider. We can reproduce the useful parts in our own middleware: canonicalized request signing, shared-secret verification, timestamp-and-nonce replay defense, and identity propagation into the framework's auth layer. Doing so gives us control over constant-time comparison, key storage and rotation, and framework-version support, and keeps a dead dependency out of the tree. Use the repository as a design reference if it saves an hour; do not import it. If we are on Laravel, the same design lands as a route middleware and a guard, not a bundle.
How can I help you explore Laravel packages today?