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

c975l/social-bundle

View on GitHub
Deep Wiki
Context7

Symfony bundle for the social side of a c975L site — social links managed in one single place and share buttons for 20 networks, placed anywhere as blocks. Replaces the former ShareButtonsBundle.

Frequently asked questions about Social Bundle
Can I use this Symfony SocialBundle directly in Laravel without refactoring?
No, this bundle is not natively compatible with Laravel due to Symfony-specific dependencies like Twig, EasyAdmin, and the Symfony DI container. You’d need to rewrite or create a wrapper layer to integrate it with Laravel’s Blade templates, service container, and admin panels like Filament or Nova.
What Laravel packages could replace the share buttons functionality?
For share buttons, consider `spatie/laravel-share-buttons`, which is Laravel-native and supports 15+ networks with customizable styles. It’s a lower-risk alternative to adapting this bundle. Compare its features against the bundle’s Twig-based `share_buttons()` function before deciding.
How would I migrate the social links data storage to Laravel?
The bundle stores social links as JSON in existing tables (no dedicated entity). In Laravel, you could use Eloquent’s `json` columns or accessors/mutators on a `users` or `pages` table. For example, add a `social_links` JSON column to your `users` table and handle serialization/deserialization via Eloquent mutators.
Is the scheduled posting feature ready for production use?
The scheduled posting feature is marked as ‘planned’ in the README with no implementation details or release date. Proceed with caution—it may not be production-ready. For now, consider using Laravel’s built-in task scheduling (e.g., `app/Console/Kernel.php`) or queue workers (e.g., Laravel Horizon) for similar functionality.
Can I replace EasyAdmin’s CRUD with a Laravel admin panel like Filament?
Yes, the bundle’s admin CRUD is standalone and can be rebuilt using Laravel admin packages like Filament, Nova, or Backpack. The core logic (social links storage/retrieval) would remain the same, but you’d need to recreate the UI layer. This reduces Symfony dependency risk while keeping the functionality intact.
What’s the best way to integrate the social links block into Laravel Blade?
Replace the Twig-based rendering logic with Blade directives or components. For example, create a Blade component (`resources/views/components/social-links.blade.php`) that fetches the JSON-stored links from your Eloquent model and renders them. The bundle’s `ui.block` pattern can inspire the structure, but adapt it to Laravel’s service container.
Does this bundle support Laravel’s queue system for scheduled tasks?
The bundle’s scheduled posting feature isn’t implemented, but you could integrate Laravel’s queues (e.g., `laravel-queue` or Horizon) to handle delayed social posts. Refactor the Symfony console commands into Laravel’s `app/Console/Commands` and dispatch them via queues for background processing.
Are there performance concerns when using this bundle in Laravel?
Performance is untested in Laravel due to Symfony dependencies, but the bundle avoids dedicated tables, reducing overhead. For share buttons, ensure you’re not loading unnecessary data in Blade templates. Test rendering times with tools like Laravel Debugbar to identify bottlenecks before production.
How do I handle the bundle’s dependencies like UiBundle and ConfigBundle in Laravel?
Drop Symfony-specific dependencies (e.g., UiBundle) and replace them with Laravel equivalents. For example, use Laravel’s `mix` or Vite for asset registration instead of Symfony’s `BundleStylesheetProviderInterface`. The bundle’s core logic (social links/data) can often be extracted without these dependencies.
What Laravel versions does this bundle support, and are there compatibility risks?
The bundle requires PHP 8.1+ but isn’t tested with Laravel. Symfony’s Twig, EasyAdmin, and DI container may conflict with Laravel’s ecosystem. If you proceed, isolate the bundle in a microservice or wrapper to minimize risks. Always test thoroughly in a staging environment before production.
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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle