Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Hybridauth Bundle Laravel Package

sllh/hybridauth-bundle

Symfony bundle integrating HybridAuth social authentication, enabling login through providers like Facebook, Google, Twitter, and more with simple configuration and Symfony service integration.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit. This is not a Laravel package. sllh/hybridauth-bundle is a Symfony bundle — Bundle class, DI extension, service definitions, Resources/config — that wraps HybridAuth 2.x social authentication (OAuth1/OAuth2 providers). The architectural analogue on Laravel is Socialite; on modern Symfony it is knpuniversity/oauth2-client-bundle (league/oauth2-client) or HWIOAuthBundle. For a TPM, the first leverage point is correcting the framing: the brief says Laravel, the artifact says Symfony. That distinction belongs in the decision log before any roadmap commitment, because it changes the buy/build conversation from "which Laravel package" to "which framework ecosystem are we standardizing on for identity." Second leverage point: the package is useful as a reference architecture — its DependencyInjection/Configuration.php provider shape (client_id, client_secret, scope, callback), its two-state controller (start + callback), and its security listener are a crib sheet for how social login is wired, regardless of framework.

Integration feasibility. Low for Laravel; you would be hand-registering Symfony services in Laravel's container and reconciling HybridAuth's session model with Laravel middleware — bespoke glue with no upstream support. Moderate but declining on Symfony: the bundle targets Symfony 2.x/early 3.x, so modern Symfony (5/6/7) likely requires a fork. The only defensible use is a legacy Symfony app where it is already installed and working.

Technical risk. High. Three drivers: (1) ecosystem signals — 25 stars, zero dependents, low health score, so no production usage to surface defects and no community patches; (2) the underlying hybridauth/hybridauth 2.x is end-of-life/archived upstream, and OAuth provider endpoints, scopes, and PKCE/OIDC requirements drift continuously; (3) abandonment — PHP/Symfony upgrades will strand the wiring. Authentication is a security-critical path; a low-adoption, EOL-wrapped auth layer is a compliance and incident-response liability, not just a maintenance cost.

Key questions. Is the target stack Symfony or Laravel? Which Symfony/PHP versions must be supported? Which identity providers are in scope, and do any offer first-party SDKs or OIDC that obviate an abstraction layer? Is the requirement login only, or account linking and token refresh? Is there an existing IdP (Auth0, Cognito, Keycloak, Entra) that should own this instead? Who owns security patches for a fork? And what is the true cost of Socialite (Laravel) or league/oauth2-client (Symfony) versus the glue work here?

Integration Approach

Stack fit. Misaligned by default. Laravel → Socialite: first-party, maintained, session-integrated, common provider coverage. Modern Symfony → knpuniversity/oauth2-client-bundle or HWIOAuthBundle, both tracking current Symfony. This bundle is defensible only in a legacy Symfony 2/3 estate as a frozen dependency pending replacement.

Migration path. If already in use, do not rip it out mid-quarter. Inventory providers and call sites, introduce an anti-corruption layer (a small SocialAuthProvider interface: redirect, callback, profile, token), reimplement that interface behind the current bundle, add contract tests exercising the callback round-trip per provider, then swap the implementation — league/oauth2-client, Socialite, or a managed IdP — without touching domain code. For a Laravel target, skip the bundle entirely and start on Socialite.

Compatibility. Expect friction on PHP constraints, Symfony DI schema changes, PSR container differences, and HybridAuth 2's session assumptions. Provider-side compatibility is the larger risk: deprecated endpoints, tightened scopes, OIDC/PKCE requirements, and callback URL registration drift. Treat "works today" as time-limited and schedule revalidation.

Sequencing. (1) Confirm stack and provider scope. (2) Decide build-vs-buy (framework-native vs managed IdP). (3) If legacy: freeze the dependency, add the abstraction layer, add provider contract tests. (4) Build the replacement behind the interface in parallel. (5) Cut over provider by provider, lowest-risk account first, behind a rollback flag. (6) Decommission and remove the dependency. TPM artifacts at each gate: decision record, risk register entry, migration ticket with owner and exit criteria.

Operational Impact

Maintenance. Effectively self-maintenance. Zero dependents means no downstream fixes; low visibility means no reviewer community; any bug becomes an internal fork. Budget for owning code rather than consuming it, and for manually tracking HybridAuth CVEs — there is no advisory pipeline you can rely on.

Support. No vendor, no maintainer commitment, no SLA. Internal on-call owns social-login incidents, which are high-visibility (users locked out at the callback) and hard to reproduce locally because they depend on third-party redirects and registered callback URLs.

Scaling. The auth flow is low-throughput and roughly stateless per request, so scale is not the constraint. The constraints are session coupling and provider-side rate limits/quota. Horizontal scaling is fine if sessions are externalized (Redis/DB) consistently; HybridAuth 2's older session assumptions may fight a load-balanced, multi-instance deployment — validate before scaling out.

Failure modes. Provider API changes producing silent auth failures; expired or rotated client secrets; callback URL mismatch after environment changes; token refresh gaps forcing re-login; PHP/Symfony upgrade breaking DI wiring with no upstream fix; abandonment leaving an unpatched vulnerability in the auth path; and account-linking edge cases (email collision across providers) producing duplicate or hijacked identities.

Ramp-up. Easy to read, hard to own. HybridAuth's API is simple enough for a mid-level engineer to wire a provider in a day, but the bundle's DI configuration and legacy Symfony conventions take longer, and the absence of docs/tests/examples means tribal knowledge. Plan roughly one engineer-sprint to produce the abstraction layer plus provider contract tests before the team can operate it safely; treat that engineer as key-person risk until the replacement lands.

Bottom line for the TPM. Feature: yes — social login is worth roadmapping. This package: no — do not adopt for new work. On Laravel, use Socialite. In an existing Symfony estate, classify this as technical debt with a defined exit: isolate behind an interface, test the callbacks, migrate to league/oauth2-client or a managed IdP, and communicate to stakeholders as a risk-retirement initiative rather than a feature build.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle