friendsofvictoire/socialbuttons-widget
A Laravel widget package for adding social media share buttons to your application. It provides a reusable component for displaying links to popular social networks, helping visitors share your content. Suitable for Blade templates and widget-based layouts, it is lightweight and easy to integrate in...
First, the framework reality check. Despite the name suggesting a generic widget, friendsofvictoire/socialbuttons-widget is a Symfony bundle (classic *Bundle suffix, FriendsOfVictoire namespace), not a Laravel package. It is part of the Victoire CMS ecosystem — a Symfony-based content management system. If you are working in a Laravel codebase, you cannot composer require this into composer.json and get anything usable without pulling in Symfony's kernel, bundle registration, and Victoire itself. Treat this as a reference implementation for concepts, not a dependency.
If you are genuinely on a Symfony/Victoire project:
composer require friendsofvictoire/socialbuttons-widget.AppKernel.php / config/bundles.php (depending on Symfony version — this bundle predates the bundles.php convention being universal, so expect AppKernel).First use case: rendering a row of social share buttons (Facebook, Twitter/X, etc.) as a droppable widget on a CMS-managed page, so editors can place share controls without touching Twig.
Where to look first: the bundle's Widget/ directory (the widget definition class), then Resources/views/ for the Twig template. Those two files are 90% of what the bundle does — everything else is wiring.
Because this is a Victoire widget, the day-to-day usage follows the Victoire widget lifecycle, not a typical Laravel service provider pattern.
vendor:publish). Victoire/Symfony resolve widget templates from your app's Resources/ before the bundle's own, so copy the bundle template into your app and customize there. This is the primary "integration tip" — never modify vendor/.https://www.facebook.com/sharer/sharer.php?u=..., https://twitter.com/intent/tweet?url=...) with the current page URL and optionally title. In a Laravel port, this maps cleanly to a Blade component + a small helper:
<x-social-buttons :url="url()->current()" :title="$page->title" />
config/socialbuttons.php. Any tutorial or Stack Overflow answer you find for it assumes Symfony's container and Victoire's widget registry.symfony/* and PHP constraints below current versions; Composer will fight you on a modern Symfony app. Check composer.json constraints before attempting install.bin/console cache:clear) and verify the template override path is winning over the bundle's copy — template resolution order is the #1 source of "my edits didn't apply."Resources/.How can I help you explore Laravel packages today?