friendsofvictoire/render-widget
A lightweight Laravel package for rendering reusable widgets in your views. Register widgets and output them through a simple API, keeping Blade templates clean, modular, and easy to maintain. Suitable for dashboards, modular layouts, and component-driven pages.
First, a reality check: friendsofvictoire/render-widget is a Symfony bundle (WidgetRenderBundle) for Victoire DCMS, not a Laravel package. It ships a WidgetRenderer service wired into Victoire's widget component pipeline (Twig rendering, widget slot resolution, and DCMS block composition). The namespace and Bundle suffix follow Symfony bundle conventions — there is no RenderWidgetServiceProvider, no config/render-widget.php, and no Laravel service container integration.
Minimal steps a Laravel developer would take:
composer require friendsofvictoire/render-widget and confirm which Victoire/victoire/widget version you get — the bundle is coupled to Symfony and Victoire internals.Resources/config/services.yml and the WidgetRenderer class. That's the whole surface area: it takes a widget/slot and returns rendered HTML.Bottom line for a Laravel app: this package has 0 stars, 0 dependents, and no Laravel bridge. Unless you are maintaining a Victoire DCMS site, you do not gain day-to-day leverage from it. If you do have a Victoire site and a Laravel admin/API on the side, treat it as a Symfony-side rendering dependency, not something you call from Laravel.
If you're inside Victoire/Symfony (the intended environment):
AppKernel/bundles.php and let Victoire's widget dispatcher use WidgetRenderer automatically — don't instantiate it by hand, inject it.Resources/views path so the renderer's lookup works.If you're in Laravel and need to consume widget output:
Http::get(...). Cache the HTML per widget/slot key in Laravel to avoid cross-framework round-trips on every request.Integration tips:
composer.json (victoire/widget etc.) — the renderer's contract is tied to Victoire's widget model.Blade integration will find Symfony DI, Symfony events, and Victoire-specific abstractions. Budget time to read the bundle source (it's small) before assuming behavior.app(WidgetRenderer::class) from Laravel — the class relies on Symfony services. Bridging it means manual wiring or the HTTP approach above.Resources/views, (3) the renderer received a non-null slot. Log the widget identifier at the call site — the bundle's own exceptions are generic.render_widget key. Don't expect a config/render-widget.php file.How can I help you explore Laravel packages today?