setono/tag-bag
Setono Tag Bag is a PHP library for collecting and rendering HTML tags like scripts, meta, and link elements. Add tags from anywhere in your code and output them later, making it ideal for Symfony apps that need clean, centralized head and body tag management.
loevgaard/code-quality-pack), so Laravel ergonomics may require glue code.For executives: Tag Bag is a small, mature open-source PHP library that centralizes how marketing and analytics tags get injected into our product. It replaces scattered hardcoded snippets with one reviewable, testable code path — which lowers the risk of misfired pixels, duplicate conversion counting, and tags leaking into environments where they shouldn't. Cost is zero in licensing; the investment is engineering time.
For engineering: v2.5.0 is a maintenance release with a hard platform bump — PHP 8.2+ is now required, alongside upgraded static analysis (PHPStan) and a shared code-quality pack (3.1). There are no new features and no API changes called out, so integration risk is low if we're already on 8.2. Treat this as a dependency-hygiene decision, not a capability decision: confirm our runtime matrix, then adopt to keep static analysis and coding standards aligned with the rest of the PHP ecosystem. If we're pinned below 8.2, defer and track the runtime upgrade as the blocker.
Recommendation: Low-risk, low-effort adoption for teams on PHP 8.2+ that want code-owned tag management. Validate Laravel integration and consent requirements before rollout; do not position it as a replacement for a marketing-owned tag manager.
How can I help you explore Laravel packages today?