PHPackages                             contao-themes-net/bootstrap-icons-inserttag - 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. contao-themes-net/bootstrap-icons-inserttag

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

contao-themes-net/bootstrap-icons-inserttag
===========================================

Bootstrap Icons Inserttag Bundle for Contao 4

1.0.0(3y ago)148LGPL-3.0-or-laterHTMLPHP ^7.0 || ^8.0

Since Sep 14Pushed 3y ago2 watchersCompare

[ Source](https://github.com/contao-themes-net/bootstrap-icons-inserttag)[ Packagist](https://packagist.org/packages/contao-themes-net/bootstrap-icons-inserttag)[ Fund](https://contao-themes.net/sponsoring.html)[ Patreon](https://www.patreon.com/user?u=28241718)[ RSS](/packages/contao-themes-net-bootstrap-icons-inserttag/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Bootstrap Icons Inserttag Bundle
================================

[](#bootstrap-icons-inserttag-bundle)

Dieses Bundle installiert ein InserTag, mit dessen Hilfe Bootstrap Icons (v1.9.1) als Font oder via SVG in Contao genutzt werden können.

### Allgemeine Form des Tags

[](#allgemeine-form-des-tags)

Das Tag beginnt mit dem Prefix `&nbsp;bi ` und ihm folgen **drei weitere** Parameter. Parameter 1 und 2 sind erforderlich, Parameter 3 und 4 sind optional und können auch weggelassen werden. Das Tag besteht also insgesamt aus 4 Parametern. Die allgemeine Form sieht so aus:

```
{{bi::name::classes::styles}}

```

### Der erste Parameter »bi«

[](#der-erste-parameter-bi)

...ist konstant und kennzeichnet das Tag.

### Der zweite Parameter »name«

[](#der-zweite-parameter-name)

...muss durch den Namen des Icons ersetzt werden. Dabei sollte der Name des Icons verwendet werden, wie er auf der Seite **Bootstrap Icons** angegeben ist:  - also ohne Prefix `bi-`!

**Beispiel:**

```
{{bi::check}}

```

Als Ergebnis sollte dieses Zeichen zu sehen sein: [![check.svg](src/Resources/public/img/bootstrap/check.svg)](src/Resources/public/img/bootstrap/check.svg)

### Der dritte Parameter »classes«

[](#der-dritte-parameter-classes)

...**kann** (ist optional) eine oder mehrere CSS-Klassen-Namen enthalten. Für das Bereitstellen der Klasse müssen die Administratorinnen und Administratoren selbst Sorge tragen. Mehrere Klassen-Namen können wie im class-Attribute eines HTML-Tags notiert werden - also auch durch Leerzeichen getrennt.

**Beispiel:**

```
{{bi::check::class1 class2 class3}}

```

Das Ergebnis könnte - je nach Definition der Klassen - so aussehen:

[![check](src/Resources/public/img/bootstrap/check.svg)](src/Resources/public/img/bootstrap/check.svg)

### Der vierte Parameter »styles«

[](#der-vierte-parameter-styles)

...**kann** (ist optional) eine oder mehrere Style-Anweisungen enthalten.

**Beispiel:**

```
// für svg
{{bi::badge-3d-fill::class1 class2::width:50px;background-color:orangered;border-radius: 50px;}}

// für icon font
{{bi::badge-4k-fill::class1 class2::font-size:3em;background-color:orangered;border-radius: 50px;}}

```

Das Ergebnis sollte so aussehen:

[![badge-3d](src/Resources/public/img/bootstrap/badge-3d-fill.svg)](src/Resources/public/img/bootstrap/badge-3d-fill.svg)

[![badge-4k](src/Resources/public/img/bootstrap/badge-4k-fill.svg)](src/Resources/public/img/bootstrap/badge-4k-fill.svg)

**Achtung!**Die Vordergrundfarbe (color) kann für ein SVG-Element nicht durch das style-Attribute gesetzt werden!

### Konfiguration

[](#konfiguration)

Das Bootstrap Icons InsertTag Bundle kann in geringem Umfang mit der **parameters.yml** konfiguriert werden. Diese wird wie folgt mitgeliefert:

```
parameters:
    bootstrap_config:
        source:
            use_cdn: false
            css_source: 'https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css'
            js_source:  'https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js'
        use:
            icon_font: false
            svg: true

```

Die Konfiguration befindet sich unterhalb des Schlüssels `bootstrap_config`.

Zurzeit werden dort zwei weitere Schlüssel ausgewertet. Der Schlüssel `source` und der Schlüssel `use`.

### source

[](#source)

Da mit dem Bundle eine Fallback-Konfiguration mitgeliefert (Script, Fonts, SVG und CSS von Bootstrap Icons 1.9.1) wird, kann hier mit dem Schlüssel `use_cdn: true` das Laden vom CDN aktiviert oder deaktiviert werden. Ist `use_cdn` auf false gesetzt, dann werden die lokalen Bundle-Assets verwendet, damit das Bundle bei Versionsänderungen im CDN lauffähig bleibt.

Wenn `use_cdn` aktiviert ist, können die Quellen mittels `css_source` und `js_source` definiert werden. Voreingestellt sind o.g. Quellen.

### use

[](#use)

Mit dem Schlüssel `use` können die beiden Darstellungsmethoden der Icons festgelegt werden. Fallback ist `icon_font: true`. Beide Schlüssel können auf `true` gesetzt sein. **Es können aber (in der aktuellen Version) nicht beide Darstellungsmethoden zugleich verwendet werden!**Soll statt Icon Font die Methode SVG zum Einsatz kommen, so muss `icon_font: false` und `svg: true` gesetzt sein. Andernfalls tritt immer der Fallback `icon_font: true` ein.

Bootstrap Icons Inserttag Bundle
================================

[](#bootstrap-icons-inserttag-bundle-1)

This bundle installs an InserTag that allows Bootstrap Icons (v1.9.1) to be used as a font or via SVG in Contao.

### General form of the tag

[](#general-form-of-the-tag)

The tag starts with the prefix `&nbsp;bi ` and it is followed by **three more** parameters. Parameters 1 and 2 are required, parameters 3 and 4 are optional and can be omitted. So the tag consists of a total of 4 parameters. The general form looks like this:

```
{{bi::name::classes::styles}}

```

### The first parameter »bi«

[](#the-first-parameter-bi)

...is constant and identifies the tag.

### The second parameter »name«

[](#the-second-parameter-name)

...must be replaced by the name of the icon. The name of the icon should be used as shown on the **Bootstrap Icons** page:  - that is, without the `bi-` prefix!

**Example:**

```
{{bi::check}}

```

As a result you should see this character: [![check.svg](src/Resources/public/img/bootstrap/check.svg)](src/Resources/public/img/bootstrap/check.svg)

### The third parameter »classes«

[](#the-third-parameter-classes)

...**may** (is optional) contain one or more CSS class names. The administrators must take care of providing the class themselves. Multiple class names can be noted as in the class attribute of an HTML tag - i.e. also separated by spaces.

**Example:**

```
{{bi::check::class1 class2 class3}}

```

The result could - depending on the definition of the classes - look like this:

[![check](src/Resources/public/img/bootstrap/check.svg)](src/Resources/public/img/bootstrap/check.svg)

### The fourth parameter »styles«

[](#the-fourth-parameter-styles)

...**may** (is optional) contain one or more style statements.

**Beispiel:**

```
// for svg
{{bi::badge-3d-fill::class1 class2::width:50px;background-color:orangered;border-radius: 50px;}}

// for icon font
{{bi::badge-4k-fill::class1 class2::font-size:3em;background-color:orangered;border-radius: 50px;}}

```

The result could - depending on the definition of the classes - look like this:

[![badge-3d](src/Resources/public/img/bootstrap/badge-3d-fill.svg)](src/Resources/public/img/bootstrap/badge-3d-fill.svg)

[![badge-4k](src/Resources/public/img/bootstrap/badge-4k-fill.svg)](src/Resources/public/img/bootstrap/badge-4k-fill.svg)

**Attention!**The foreground color (color) cannot be set for an SVG element by the style attribute!

### Configuration

[](#configuration)

The Bootstrap Icons InsertTag Bundle can be configured to a small extent using **parameters.yml**. This is supplied as follows:

```
parameters:
    bootstrap_config:
        source:
            use_cdn: false
            css_source: 'https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css'
            js_source: 'https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js'
        use:
            icon_font: false
            svg: true

```

The configuration is located below the `bootstrap_config` key.

Currently, two other keys are evaluated there. The `source` key and the `use` key.

### source

[](#source-1)

Since a fallback configuration is provided with the bundle (scirpt, fonts, SVG and CSS from Bootstrap Icons 1.9.1), the key `use_cdn: true` can be used to enable or disable loading from the CDN. If `use_cdn` is set to false, the local bundle assets are used so that the bundle is executable in case of version changes in the CDN.

If `use_cdn` is enabled, the sources can be defined with `css_source` and `js_source`. The default sources are those listed above.

### use

[](#use-1)

The `use` key can be used to define the two display methods of the icons. Fallback is `icon_font: true`. Both keys can be set to `true`. \*\*However (in the current version) both display methods cannot be used at the same time! If the SVG method is to be used instead of Icon Font, `icon_font: false` and `svg: true` must be set. Otherwise the fallback `icon_font: true` will always occur.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

1336d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10244240?v=4)[Mathias Arzberger](/maintainers/MDevster)[@MDevster](https://github.com/MDevster)

---

Top Contributors

[![MDevster](https://avatars.githubusercontent.com/u/10244240?v=4)](https://github.com/MDevster "MDevster (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/contao-themes-net-bootstrap-icons-inserttag/health.svg)

```
[![Health](https://phpackages.com/badges/contao-themes-net-bootstrap-icons-inserttag/health.svg)](https://phpackages.com/packages/contao-themes-net-bootstrap-icons-inserttag)
```

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[madeyourday/contao-rocksolid-custom-elements

Create your own, nestable content elements using a modular system. End the WYSIWYG chaos with your own content elements.

50341.9k12](/packages/madeyourday-contao-rocksolid-custom-elements)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[terminal42/contao-folderpage

Provides a new page type for Contao that allows you to group pages into folders.

18147.9k9](/packages/terminal42-contao-folderpage)[inspiredminds/contao-wowjs

Integrates WOW.js for Contao content elements and form fields.

1813.0k](/packages/inspiredminds-contao-wowjs)[inspiredminds/contao-glightbox

Contao extension to integrate GLightbox.

1223.3k1](/packages/inspiredminds-contao-glightbox)

PHPackages © 2026

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