PHPackages                             taurus-media/module-hyva-svg-sprite - 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. taurus-media/module-hyva-svg-sprite

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

taurus-media/module-hyva-svg-sprite
===================================

Optimize SVG rendering in Hyva themes by using SVG sprites.

1.0.0(1mo ago)143↓100%MITPHP &gt;=8.1

Since May 6Pushed 1mo agoCompare

[ Source](https://github.com/taurus-media/module-hyva-svg-sprite)[ Packagist](https://packagist.org/packages/taurus-media/module-hyva-svg-sprite)[ RSS](/packages/taurus-media-module-hyva-svg-sprite/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Taurus HyvaSvgSprite
====================

[](#taurus-hyvasvgsprite)

The `Taurus_HyvaSvgSprite` module optimizes SVG rendering in Hyva themes by automatically converting individual SVG icons into a single SVG sprite.

Overview
--------

[](#overview)

In standard Hyva themes, icons are rendered as individual `` elements directly in the HTML. While efficient, this can lead to a larger DOM size if many icons are used or if the same icon is repeated multiple times.

This module intercepts the `Hyva\Theme\ViewModel\SvgIcons::renderHtml` method. Instead of returning the full SVG content, it:

1. Adds the icon to a centralized `SvgSprite` ViewModel.
2. Returns a light `` tag.
3. Renders all collected icons as `` elements within a hidden `` sprite at the bottom of the page (before the `` tag).

Features
--------

[](#features)

- **Performance Optimization**: Reduces the overall size of the HTML document by reusing SVG definitions.
- **Automatic Integration**: No changes needed to existing templates. It automatically plugins into Hyva's standard icon rendering logic.
- **Zero Configuration**: Works out of the box once enabled.

Installation
------------

[](#installation)

### Via Composer

[](#via-composer)

1. Install the module:

    ```
    composer require taurus-media/module-hyva-svg-sprite
    ```
2. Run the following Magento commands:

    ```
    bin/magento module:enable Taurus_HyvaSvgSprite
    bin/magento setup:upgrade
    bin/magento cache:flush
    ```

### Manual Installation

[](#manual-installation)

1. Copy the module files to `app/code/Taurus/HyvaSvgSprite`.
2. Run the following Magento commands: ```
    bin/magento module:enable Taurus_HyvaSvgSprite
    bin/magento setup:upgrade
    bin/magento cache:flush
    ```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance93

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

34d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a63921d7d7fd387db50f9e01c25123205ad89de7a50c0c95ea2ba4061cc4b26?d=identicon)[taurus-media](/maintainers/taurus-media)

---

Top Contributors

[![taurus-media](https://avatars.githubusercontent.com/u/171674733?v=4)](https://github.com/taurus-media "taurus-media (1 commits)")

### Embed Badge

![Health badge](/badges/taurus-media-module-hyva-svg-sprite/health.svg)

```
[![Health](https://phpackages.com/badges/taurus-media-module-hyva-svg-sprite/health.svg)](https://phpackages.com/packages/taurus-media-module-hyva-svg-sprite)
```

###  Alternatives

[elgentos/regenerate-catalog-urls

Regenerate Catalog URL Rewrites (products, categories, cms pages)

2852.6M](/packages/elgentos-regenerate-catalog-urls)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68353.9k](/packages/run-as-root-magento2-prometheus-exporter)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1859.0k](/packages/myparcelnl-magento)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1010.0k22](/packages/loki-magento2-components)[magepal/magento2-form-field-manager

Customer and Address Form Fields Manager for Magento2

293.9k](/packages/magepal-magento2-form-field-manager)[mage-os/module-llm-txt

AI-powered LLMs.txt generation for Magento 2 / Mage-OS stores. Help AI systems understand your store with OpenAI-generated content.

223.3k](/packages/mage-os-module-llm-txt)

PHPackages © 2026

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