ma27/api-key-authentication-bundle
Symfony bundle that adds API key authentication to your app. Validate keys from request headers or query parameters, resolve them to users via a provider, and protect firewall routes for REST APIs and machine-to-machine access with minimal configuration.
2.0.0-alpha1 pre-release exists, which means the project is not fully abandoned. However, an alpha pre-release explicitly labeled "not production-ready," with documentation acknowledged as possibly out of date, is not a procurement option. It changes the signal from "dead" to "reviving, unknown timeline" — neither supports a dependency decision. Adoption cost remains low (MIT, small surface area); total cost of ownership remains high until a stable 2.x ships with a maintainer behind it.Ma27ApiKeyAuthenticationBundle). A 2.0.0 branch likely modernizes toward Symfony 4+/5+ authenticator APIs, but that is an inference, not a documented guarantee, and it does nothing for a Laravel stack. For Laravel the relevant comparisons remain Sanctum (first-party, maintained) or Passport. Confirm the framework before this reaches a backlog.Consider it only in a narrow, low-stakes window:
Look elsewhere — meaning build natively or use a maintained alternative — when any of the following hold:
LexikJWTAuthenticationBundle, API Platform, or a managed identity provider instead.To executives: This is a free, MIT-licensed Symfony bundle for generating API keys for REST APIs. It has been effectively dormant, and the only new signal is a 2.0.0-alpha1 pre-release that the maintainers themselves describe as not production-ready. That is activity, not stability. Adopting it might save a day of development while placing an unreleased component in our authentication path — a poor trade for anything customer-facing or covered by a security review. The recommendation is unchanged: do not adopt. The equivalent functionality is small enough to implement natively on our current framework, and for a Laravel stack the first-party equivalent (Sanctum) already exists at no cost. Budget roughly one to three developer days and carry no third-party auth dependency. We will re-evaluate only if a stable 2.x ships with a documented support commitment.
To engineering: Treat the repository as a design reference only. The new 2.0.0 branch reportedly reworks internal design and performance, which is a signal the maintainer is modernizing — but it is an alpha with possibly stale docs, so do not vendor it, do not patch it, and do not plan a migration around it. The pattern remains sound: generate key, store hashed at rest, authenticate on a header, support revocation and per-client scoping from day one. Implement that as a framework-native authenticator. If this requirement landed in a Laravel context, stop and use Sanctum — this is a Symfony bundle and is not a candidate, at any version.
How can I help you explore Laravel packages today?