PHPackages                             think-digital-agency/contao-fontawesome-inserttags - 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. think-digital-agency/contao-fontawesome-inserttags

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

think-digital-agency/contao-fontawesome-inserttags
==================================================

FontAwesome insert tags for Contao 5 — use {{fas::...}}, {{far::...}}, {{fab::...}} anywhere in your content.

00PHP

Since Jun 14Pushed todayCompare

[ Source](https://github.com/think-digital-agency/contao-fontawesome-inserttags)[ Packagist](https://packagist.org/packages/think-digital-agency/contao-fontawesome-inserttags)[ RSS](/packages/think-digital-agency-contao-fontawesome-inserttags/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Contao FontAwesome Insert Tags
==============================

[](#contao-fontawesome-insert-tags)

[![Packagist](https://camo.githubusercontent.com/601961e9cd347c13b5c241ccd3ad24b83d9d69529a5f9c1cd4fb55c76b872b1c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468696e6b2d6469676974616c2d6167656e63792f636f6e74616f2d666f6e74617765736f6d652d696e73657274746167732e737667)](https://packagist.org/packages/think-digital-agency/contao-fontawesome-inserttags)[![Downloads](https://camo.githubusercontent.com/afae9b18aab6b0426418338efc0b6b5091b8ab71f7f020dcdad7fdee328d0c9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468696e6b2d6469676974616c2d6167656e63792f636f6e74616f2d666f6e74617765736f6d652d696e73657274746167732e737667)](https://packagist.org/packages/think-digital-agency/contao-fontawesome-inserttags)[![License](https://camo.githubusercontent.com/80f2ceaf48fe208132452db4c4ba704eeb42fe35a5e134bad0327afc91ccdaab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2d6469676974616c2d6167656e63792f636f6e74616f2d666f6e74617765736f6d652d696e73657274746167732e737667)](LICENSE)

**\[English\]** Use FontAwesome icons anywhere in Contao 5 via insert tags — in text fields, headlines, HTML modules, navigation labels, RSCE templates, and anywhere else Contao processes insert tags.

```
composer require think-digital-agency/contao-fontawesome-inserttags
```

---

**FontAwesome-Icons überall in Contao.** Kein Copy-Paste von ``-Tags. Kein HTML-Modul. Einfach `{{fas::rocket}}` in beliebige Felder tippen — fertig.

---

Verwendung
----------

[](#verwendung)

```
{{fas::rocket}}                      →
{{far::circle-check}}                →
{{fab::github}}                      →
{{fa::star}}                         →

{{fas::rocket::spin}}                →
{{fas::rocket::spin::2x}}            →

```

TagFontAwesome-Stil`{{fas::…}}`Solid`{{far::…}}`Regular`{{fab::…}}`Brands`{{fa::…}}`Generisch (v4-Kompatibilität)Parameter 1 = Icon-Name, Parameter 2+ = optionale Modifier (`spin`, `2x`, `lg`, `fw`, …). Das Präfix `fa-` wird automatisch gesetzt.

---

Features
--------

[](#features)

- **Alle Contao-Felder** — Text, Überschrift, Navigation, HTML-Module, RSCE, Twig-Templates via `insert_tag_raw`-Filter
- **4 Tag-Varianten** — `{{fas::}}`, `{{far::}}`, `{{fab::}}`, `{{fa::}}`
- **Modifier-Parameter** — beliebig viele Klassen-Modifier pro Tag, automatisches `fa-`-Präfix
- **XSS-sicher** — Icon-Name und Modifier werden per Regex `^[a-z0-9-]+$` validiert und mit `htmlspecialchars` escaped
- **`aria-hidden="true"`** — Icons sind für Screenreader automatisch unsichtbar

---

Perfekt kombiniert: Contao Design+ Theme
----------------------------------------

[](#perfekt-kombiniert-contao-design-theme)

Diese Extension ist nativ im **[Contao Design+ Theme](https://themes.contao.org/de/index/contao-design-plus)** integriert. Design+ liefert FontAwesome 6 Free als selbst-gehostete Assets mit und nutzt die Insert Tags in Navigationen, Breadcrumbs, Kalender- und RSCE-Templates.

---

Voraussetzungen
---------------

[](#voraussetzungen)

- PHP 8.2 oder höher
- Contao 5.3 oder höher
- FontAwesome CSS/Webfonts (selbst gehostet oder via CDN — **nicht** in diesem Bundle enthalten)

---

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

[](#installation)

```
composer require think-digital-agency/contao-fontawesome-inserttags
php bin/console cache:clear && php bin/console cache:warmup
```

Die Extension registriert sich automatisch über den Contao Manager Plugin. Keine weitere Konfiguration erforderlich.

**FontAwesome-Assets einbinden** (falls noch nicht vorhanden) — z. B. via CDN im Layout:

```

```

Oder selbst gehostet über einen `generatePage`-Hook bzw. direkt im Layout-Template.

---

Verwendung in Twig-Templates
----------------------------

[](#verwendung-in-twig-templates)

```
{# Standard — OutputType::html, kein weiteres |raw nötig: #}
{{ '{{fas::arrow-right}}'|insert_tag_raw }}

{# Mit |raw (harmlos, aber redundant): #}
{{ "{{far::arrow-alt-circle-down}}"|insert_tag_raw|raw }}
```

---

Lizenz
------

[](#lizenz)

LGPL-3.0-or-later — siehe [LICENSE](LICENSE).

Entwickelt von [Think Digital Agency](https://think-digital.agency).

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6197911?v=4)[Raphael Leuthner](/maintainers/think-digital-agency)[@think-digital-agency](https://github.com/think-digital-agency)

### Embed Badge

![Health badge](/badges/think-digital-agency-contao-fontawesome-inserttags/health.svg)

```
[![Health](https://phpackages.com/badges/think-digital-agency-contao-fontawesome-inserttags/health.svg)](https://phpackages.com/packages/think-digital-agency-contao-fontawesome-inserttags)
```

###  Alternatives

[pragmatic-modules/magento2-module-system-configuration-toolkit

System Configuration Toolkit is a Magento 2 module that shows sort order of system configuration's tabs, sections, groups, and fields. It also helps you to see full field paths, so no more looking for those.

3212.0k](/packages/pragmatic-modules-magento2-module-system-configuration-toolkit)[dfridrich/czech-data-box

Knihovna pro komunikaci s datovou schránkou v PHP.

2910.6k1](/packages/dfridrich-czech-data-box)[mohammad-mahdy/yii2-jdate

Jalali date &amp; time.

148.5k5](/packages/mohammad-mahdy-yii2-jdate)

PHPackages © 2026

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