setono/tag-bag-bundle
Symfony bundle for centralized tag management. Collect and render analytics, tracking, and marketing tags such as Google Analytics or Facebook Pixel from one place in your templates, keeping scripts organized and easy to control.
<script>, <meta>, <link>, and JSON-LD tags from controllers, listeners, service providers, and view composers) or adopt this bundle. The bundle wraps setono/tag-bag, so the underlying concept is reusable even if the framework integration is thin and Symfony-specific.v3.2.0, or defer. If we are already on PHP 8.2+ and Symfony 6.4 LTS or 7.x, this is a zero-friction maintenance upgrade.setono/tag-bag itself (framework-agnostic) plus a small service provider is the realistic reuse path, and that path now also assumes PHP 8.2+.TagRenderer interface and swap implementations later. v3.3.0 is a maintenance release with no API additions, which keeps the exit option intact and cheap.Consider it when:
base.html.twig.”Look elsewhere when:
setono/tag-bag or build a small service.v3.2.0) with no forward path except a platform upgrade.Executive summary: This is a small, MIT-licensed Symfony bundle that gives us a clean way to collect and render page tags—scripts, meta, links, structured data—from anywhere in the application. It replaces scattered template edits and custom helpers with a single, testable pipeline. The new v3.3.0 release is a maintenance-only update: no new features, no API changes, but it raises the platform floor to PHP 8.2+ and Symfony 6.4/7.x. Cost stays near zero; the main risks are ecosystem maturity and an explicit platform-version dependency.
For engineering: v3.3.0 integrates setono/tag-bag into Symfony’s container and Twig layer with no API or behavioral changes—it bumps constraints to PHP >=8.2, Symfony ^6.4 || ^7.x, and refreshes dev tooling (code-quality-pack ^3.2). Because the change is constraint-only, the upgrade is low-risk if we are already on PHP 8.2+ and Symfony 6.4 LTS or 7.x; if not, pin v3.2.0 and schedule the platform bump. Note the maintainer’s pattern: minor releases can drop EOL platforms, so treat the Symfony/PHP baseline as a tracked dependency. The API remains small—register tags/providers, render the bag in the layout—so we can isolate it behind our own interface, pilot it on one surface (e.g., structured data or marketing scripts), and swap it if needed. It also makes tag ordering, deduplication, and environment/consent gating explicit.
For product/finance: Approve a time-boxed pilot, not a platform bet. It reduces custom code and merge conflicts in base.html.twig, and it makes analytics/consent changes code-reviewable. The upgrade itself carries no migration cost beyond confirming our PHP/Symfony versions—no rewrite, no data migration, no re-testing of tag behavior. Do not assume community support: 5 stars, 0 dependents, and a single-vendor maintenance model mean we should budget an exit path. If the pilot shows value, keep it behind an internal abstraction; if not, remove it with limited sunk cost. If we are on an older Symfony, treat the platform upgrade as the real cost item and decide whether the tag pipeline alone justifies it—or defer to v3.2.0 until another driver forces the upgrade.
How can I help you explore Laravel packages today?