Weave Code
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

Bartender Laravel Package

directorytree/bartender

Opinionated Laravel Socialite auth starter. Ships ready-made routes (/auth/{driver}/redirect, /callback), controller, and user columns for provider ID/name plus optional access/refresh tokens. Highly customizable; supports soft deletes and email verification.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Accelerate OAuth/Social Login Implementation: Reduces development time for integrating Google, Microsoft, GitHub, or other Socialite providers by providing pre-built controllers, routes, and migrations. Ideal for MVP launches or rapid feature rollouts.
  • Standardize Authentication Flow: Enables consistent user onboarding across multiple providers with minimal customization, reducing technical debt and improving maintainability.
  • Build vs. Buy Decision: Justifies buying (leveraging this package) over building from scratch for teams with limited backend resources or tight deadlines. Avoids reinventing OAuth workflows.
  • Roadmap for Scalable Auth: Supports future-proofing by allowing easy swapping of repositories, handlers, or redirect logic as requirements evolve (e.g., adding custom user validation or token refresh logic).
  • Compliance & Security: Facilitates GDPR/privacy-compliant token storage (via StoresProviderTokens interface) and session security (e.g., session regeneration post-auth).
  • Multi-Provider Strategy: Enables A/B testing or phased rollouts of different OAuth providers (e.g., Google for consumers, Microsoft for enterprise) without duplicating code.

When to Consider This Package

  • Avoid if:
    • Your app requires highly custom OAuth flows (e.g., custom scopes, multi-step consent screens) that can’t be extended via Bartender’s interfaces.
    • You need non-Socialite providers (e.g., custom OAuth2 servers, SAML) or legacy auth systems (e.g., LDAP).
    • Your team lacks Laravel/Socialite familiarity—this package abstracts but doesn’t simplify core OAuth concepts.
    • You’re building a microservice where auth is decoupled (e.g., using a dedicated auth service like Auth0).
  • Look elsewhere if:
    • You need advanced features like OAuth token revocation, dynamic provider switching, or real-time auth events (consider Laravel Breeze/Sanctum + custom logic).
    • Your user model is non-standard (e.g., polymorphic relationships with providers) and can’t be adapted via ProviderRepository.
    • You’re targeting PHP < 8.0 or Laravel < 9.0 (compatibility is strict).

How to Pitch It (Stakeholders)

For Executives:

"Bartender cuts the time to launch social logins from weeks to hours by providing a battle-tested, opinionated framework for OAuth in Laravel. It’s like using a pre-built authentication ‘Lego block’—we get Google/Microsoft logins with email verification, token storage, and soft deletes out of the box, while keeping full control to customize later. This reduces dev costs by ~70% compared to building from scratch and aligns with our roadmap to support enterprise (Microsoft) and consumer (Google) users seamlessly. The MIT license and active maintenance (last release: March 2026) ensure long-term reliability."

For Engineering:

*"Bartender abstracts the boilerplate of Socialite providers (routes, controllers, migrations) while exposing strategic extension points:

  • Swap repositories to customize user creation/updating (e.g., add custom fields or logic).
  • Override handlers for provider-specific tweaks (e.g., Microsoft scopes or Google’s consent screen).
  • Opt into token storage via StoresProviderTokens without bloating the DB if unused. It’s Laravel-native, supports Laravel 9–13, and plays well with Sanctum/Passport if we need to layer on API auth later. The package’s maturity (285 stars, active releases) and MIT license make it a low-risk choice for our auth stack."*

For Design/Product:

*"This lets us A/B test login flows (e.g., Google vs. Microsoft for enterprise vs. consumer) without backend changes. The package handles edge cases like:

  • Soft-deleted users (auto-restored on login).
  • Email verification (auto-triggered post-OAuth).
  • Session security (auto-regeneration to prevent fixation attacks). We can iterate on the UI (e.g., login button styling) while the backend remains stable. Future-proof for adding providers like GitHub or LinkedIn with minimal effort."*
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.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle