PHPackages                             mundgold/svg-tag-unique-id - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mundgold/svg-tag-unique-id

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mundgold/svg-tag-unique-id
==========================

This Statamic 4+ addon extends the functionality of the original SVG tag by introducing a new attribute, replace\_ids. When this attribute is added to the SVG tag, the addon automatically prefixes all IDs within the SVG with a unique identifier, preventing conflicts with duplicate IDs from multiple embedded SVGs on a single page

v1.0.6(1y ago)037MITPHP

Since Jan 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mundgold/svg-tag-unique-id)[ Packagist](https://packagist.org/packages/mundgold/svg-tag-unique-id)[ RSS](/packages/mundgold-svg-tag-unique-id/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

SVG ID Prefixer Addon for Statamic
==================================

[](#svg-id-prefixer-addon-for-statamic)

This Statamic addon extends the functionality of the original SVG tag by introducing a new attribute, `replace_ids="true"`. When this attribute is added to the SVG tag, the addon automatically prefixes all IDs within the SVG with a unique identifier, preventing conflicts with duplicate IDs from multiple embedded SVGs on a single page.

Why Use This Addon?
-------------------

[](#why-use-this-addon)

Avoid ID conflicts when embedding multiple SVGs on a single page. This addon provides a convenient solution to ensure unique IDs within SVG elements, enhancing compatibility and preventing unintended styling or scripting issues.

How to Install
--------------

[](#how-to-install)

You can run the following command from your project root:

```
composer require mundgold/svg-tag-unique-id
```

How to Use
----------

[](#how-to-use)

Simply include the `replace_ids="true"` attribute in your Statamic SVG tag:

```
{{ svg replace_ids="true" path="path/to/your/svg/file.svg" }}

```

License
-------

[](#license)

This addon is open-sourced software licensed under the MIT license.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~37 days

Recently: every ~45 days

Total

6

Last Release

658d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b2f833be4d1a4b360eb9eaf668b51a864911412bb734cd721fcdbf9794664ab6?d=identicon)[mundgold](/maintainers/mundgold)

---

Top Contributors

[![mundgold](https://avatars.githubusercontent.com/u/5293053?v=4)](https://github.com/mundgold "mundgold (9 commits)")

### Embed Badge

![Health badge](/badges/mundgold-svg-tag-unique-id/health.svg)

```
[![Health](https://phpackages.com/badges/mundgold-svg-tag-unique-id/health.svg)](https://phpackages.com/packages/mundgold-svg-tag-unique-id)
```

###  Alternatives

[statamic/ssg

Generate static sites with Statamic.

254302.4k](/packages/statamic-ssg)[statamic/seo-pro

65440.7k](/packages/statamic-seo-pro)[jacksleight/statamic-bard-texstyle

17172.5k](/packages/jacksleight-statamic-bard-texstyle)[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20116.8k](/packages/visuellverstehen-statamic-classify)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

13128.3k](/packages/withcandour-aardvark-seo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
