PHPackages                             spaze/svg-icons-latte - 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. [Templating &amp; Views](/categories/templating)
4. /
5. spaze/svg-icons-latte

ActiveLibrary[Templating &amp; Views](/categories/templating)

spaze/svg-icons-latte
=====================

SVG Icons Custom Tag for Latte Templating System

v1.0.5(3mo ago)312MITPHPPHP ^8.1CI passing

Since Oct 25Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/spaze/svg-icons-latte)[ Packagist](https://packagist.org/packages/spaze/svg-icons-latte)[ RSS](/packages/spaze-svg-icons-latte/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (9)Versions (7)Used By (0)

SVG Icons Custom Tag for Latte Templating System
================================================

[](#svg-icons-custom-tag-for-latte-templating-system)

The custom `{icon}` tag will embed an SVG icon loaded from an external file.

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

[](#installation)

```
composer require spaze/svg-icons-latte

```

Requires PHP 8.1+

Register the Nette extension, e.g.:

```
extensions:
	svgIcons: Spaze\SvgIcons\NetteExtension
```

This will also auto-register the Latte extension itself.

Configuration
-------------

[](#configuration)

```
svgIcons:
	iconsDir: '../../node_modules/humbleicons/icons'
	cssClass: 'humbleicons'
```

- `iconsDir` is a path to a directory with SVG icon files, for example [Humbleicons](https://humbleicons.com/) by [@Zraly](https://twitter.com/zraly) (required)
- `cssClass` defines a CSS class that will be added to the root `` element (optional)

Usage
-----

[](#usage)

`{icon wifi}` will be replaced with a contents loaded from `wifi.svg` located in `iconsDir`.

You can also add extra CSS classes: `{icon wifi class => foo, class => bar}` will add additional CSS classes `foo` and `bar` to the root `` element.

Given the configuration above, the resulting tag would look like ``.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance78

Regular maintenance activity

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.3% 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 ~225 days

Recently: every ~260 days

Total

6

Last Release

118d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6777bd445610e6e458e4d41bdefa3070d2ed4e068323362353b061b15e9ff81b?d=identicon)[spaze](/maintainers/spaze)

---

Top Contributors

[![spaze](https://avatars.githubusercontent.com/u/1966648?v=4)](https://github.com/spaze "spaze (25 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spaze-svg-icons-latte/health.svg)

```
[![Health](https://phpackages.com/badges/spaze-svg-icons-latte/health.svg)](https://phpackages.com/packages/spaze-svg-icons-latte)
```

###  Alternatives

[contributte/forms-bootstrap

Nette extension for Bootstrap forms

211.1M4](/packages/contributte-forms-bootstrap)[nepada/form-renderer

Latte template based form renderer for Nette forms with full support for Bootstrap 3, 4 &amp; 5.

11250.1k](/packages/nepada-form-renderer)[contributte/latte

Extra contrib to nette/latte

121.4M2](/packages/contributte-latte)[webrouse/n-asset-macro

Asset macro for Latte and Nette Framework useful for assets cache busting (with gulp, webpack, etc.)

1264.3k1](/packages/webrouse-n-asset-macro)[nextras/forms-rendering

Rendering helpers for Nette Framework Forms.

1695.8k1](/packages/nextras-forms-rendering)

PHPackages © 2026

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