bburnichon/bbn-security-bundle
Adopt When:
Look Elsewhere When:
nelmio/api-doc-bundle + custom logic).For Executives: "This bundle lets us secure our API endpoints with API keys in hours—not weeks—using open-source software. It’s ideal for internal tools, microservices, or simple integrations where OAuth2’s complexity isn’t needed. By avoiding proprietary auth services, we cut costs while maintaining security. Perfect for our [X] initiative where [Y] use case demands fast, lightweight authentication."
For Engineers: *"bbn-security-bundle provides a Symfony2-compatible API key auth provider with zero dependencies beyond Symfony’s core. It’s a drop-in solution for stateless endpoints:
apikey in headers is sufficient. For public APIs, pair it with a reverse proxy (e.g., Nginx) to rate-limit keys."*For Developers: *"To implement:
@dev branch).security.yml with your API key parameter (e.g., X-API-KEY).loadUserFromUsername().
Example:api_key:
parameter: X-API-KEY # Customize header/param name
Note: Keys must be pre-generated/stored in your DB. No built-in key management—you’ll need to handle revocation logic separately."*
How can I help you explore Laravel packages today?