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
Social Bundle

Social Bundle Laravel Package

akuma/social-bundle

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Social Bundle
Can I use AkumaSocialBundle directly in Laravel without Symfony?
No, this bundle is built for Symfony 2.6 and requires Symfony components. However, you can adapt its OAuth2 logic using Laravel’s Socialite or league/oauth2-client. The bundle’s configuration (e.g., `parameters.yml`) can be translated to Laravel’s `.env` or `config/social.php`.
How do I set up Facebook login in Laravel using this bundle’s approach?
Extract the OAuth2 logic from the bundle and use Laravel Socialite with the `socialiteproviders/facebook` package. Replace the Symfony `security.yml` providers with Laravel’s `Auth::providers()` and route `/facebook/connect` to `Socialite::driver('facebook')->redirect()`.
Does this bundle support Microsoft OAuth2 better than Laravel Socialite?
The bundle includes Microsoft OAuth2, but Laravel’s `socialiteproviders/microsoft` is community-maintained and may require customization. For production, test both thoroughly—this bundle’s Microsoft support might need abstraction for Laravel’s ecosystem.
How do I migrate the bundle’s user provider logic to Laravel?
Map the Symfony `security.yml` providers (e.g., `akuma_social_facebook`) to Laravel’s `Auth::providers()` using Socialite guards. For example, define a `facebook` provider in `config/auth.php` with `driver: 'socialite'` and `model: User::class`. Link social accounts to Laravel’s users table via `User::findOrCreate()` in a custom Socialite callback.
What Laravel versions are compatible with this bundle’s PHP 5.4+ requirement?
Laravel 9+ requires PHP 8.1+, so downgrading risks deprecated functions. If you must use PHP 5.4–7.4, consider a custom OAuth2 middleware with `league/oauth2-client` (v0.8) or port the bundle’s logic to a Laravel-compatible package.
Are there performance concerns using Symfony components in Laravel?
Yes, Symfony’s `EventDispatcher` and `DependencyInjection` add overhead. For lightweight Laravel apps, replace these with Laravel’s native `Events` and `Service Container`. The bundle’s core OAuth2 logic (via `league/oauth2-client`) can be extracted without Symfony dependencies.
How do I configure Google OAuth2 credentials in Laravel using this bundle’s structure?
Move the `parameters.yml` Google credentials (`google_id`, `google_secret`, `google_scopes`) to Laravel’s `.env` (e.g., `GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET`). Use `socialiteproviders/google` to handle the OAuth2 flow, mirroring the bundle’s `config.yml` structure in `config/social.php`.
What alternatives exist for Microsoft OAuth2 in Laravel?
Use `socialiteproviders/microsoft` for basic integration or build a custom middleware with `league/oauth2-client`. The bundle’s Microsoft setup (e.g., redirect URIs like `/microsoft/connect`) can be replicated in Laravel’s `routes/web.php` with `Socialite::driver('microsoft')->redirect()`.
Is this bundle actively maintained? Should I use it for production?
The bundle has no stars or dependents, indicating unproven stability. The TODO in `security.yml` (e.g., route name support) suggests incomplete features. For production, evaluate alternatives like `socialiteproviders` or extract the bundle’s logic into a Laravel-compatible package with proper testing.
How do I handle user account linking between social logins and Laravel’s database?
Use Laravel’s `Socialite` callbacks to attach social IDs to your `users` table. For example, after fetching a user from Facebook, run `User::updateOrCreate(['email' => $user->email], ['provider_id' => $user->id])`. The bundle’s FOSUserBundle `UserManager` can be replaced with Laravel’s Eloquent models.
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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware