PHPackages                             yalit/twig-heroicon-bundle - 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. yalit/twig-heroicon-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

yalit/twig-heroicon-bundle
==========================

A simple bundle to load Tailwind Heroicon icons from Twig template

0.9(1y ago)0148[2 issues](https://github.com/yalit/TwigHeroiconBundle/issues)MITPHPPHP ^8

Since Aug 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/yalit/TwigHeroiconBundle)[ Packagist](https://packagist.org/packages/yalit/twig-heroicon-bundle)[ RSS](/packages/yalit-twig-heroicon-bundle/feed)WikiDiscussions main Synced 1mo ago

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

TwigHeroicon Bundle
===================

[](#twigheroicon-bundle)

Simple Symfony bundle that provides a Twig extension 'heroicon' to get all the Heroicons svg automatically. The bundle depends on the node package [tailwindlabs/heroicons](https://github.com/tailwindlabs/heroicons/) to get the svg icons.

1. [Installation](#installation)
2. [Usage](#usage)
3. [Configuration](#configuration)

    a. [Default Configuration](#default-configuration)

    b. [Webpack Configuration](#webpack-configuration)

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

[](#installation)

First, start by installing the package via composer:

```
composer require yalit/twig-heroicon-bundle
```

Then, enable the bundle in your `config/bundles.php` file:

```
// config/bundles.php
