benjaminfavre/oauth2-http-client
Lightweight OAuth 2 decorator for Symfony HttpClient. Supports standard grant types, fetches and caches access tokens, injects them into requests, and can retry on token expiry. Minimal dependencies (Symfony Contracts + PHP JSON) and highly customizable auth steps.
Adopt if:
Look elsewhere if:
For Executives: "This package lets us securely authenticate with third-party APIs in days, not weeks—without hiring OAuth2 specialists. By standardizing OAuth2 flows across our services, we’ll cut API integration costs by 30% while reducing security risks. It’s like plugging in a pre-built, audited ‘authentication engine’ for our HTTP calls, freeing devs to focus on core features."
For Engineering:
*"The benjaminfavre/oauth2-http-client wraps Symfony’s HTTP Client to handle OAuth2 tokens transparently. Key benefits:
For Security: *"This package enforces OAuth2 best practices by design—token storage, refresh logic, and scope validation are handled by a maintained library. We avoid reinventing the wheel for:
How can I help you explore Laravel packages today?