PHPackages                             jmf/twig-icon-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. jmf/twig-icon-bundle

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

jmf/twig-icon-bundle
====================

Symfony bundle for rendering pre-set icons in Twig templates.

1.0.0(1mo ago)015mitPHPPHP &gt;=8.3CI passing

Since May 30Pushed 1mo agoCompare

[ Source](https://github.com/jmfeurprier/twig-icon-bundle)[ Packagist](https://packagist.org/packages/jmf/twig-icon-bundle)[ RSS](/packages/jmf-twig-icon-bundle/feed)WikiDiscussions 1.0 Synced 1w ago

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

jmf/twig-icon-bundle
====================

[](#jmftwig-icon-bundle)

Symfony bundle providing a Twig `icon()` function backed by a configurable icon ID-to-CSS-class mapping.

Requirements
------------

[](#requirements)

- PHP 8.3+
- Symfony 7.0 or 8.0

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

[](#installation)

Install with [Composer](https://getcomposer.org):

```
composer require jmf/twig-icon-bundle
```

Register the bundle in `config/bundles.php` if not using Symfony Flex:

```
