adunblock/server-tag-symfony
Symfony bundle that fetches script URLs from a remote endpoint and renders them via a Twig server_tag() function. Uses Symfony HttpClient, optional caching with configurable TTL, safe HTML escaping, and graceful error handling. Compatible with Symfony 5–8.
file_get_contents() + caching or npm packages like server-side-scripts.<script> tags) suffice.async, defer), requiring wrapper solutions.symfony/google-tag-manager."This bundle lets us load third-party scripts (ads, analytics, etc.) server-side, eliminating ad-blocker interference and speeding up page loads by caching responses. It’s a drop-in solution for Symfony apps, reducing dev time while improving compliance and performance—critical for [specific KPIs, e.g., conversion rates or core web vitals]."
ROI Hook:
*"A Symfony bundle that:
Trade-offs:
async).Proposal:
Dev-Friendly Notes:
composer require + bundle enable)."{{ server_tag('https://example.com/tag') }}—done."How can I help you explore Laravel packages today?