PHPackages                             cristianoc72/icon-button - 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. cristianoc72/icon-button

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

cristianoc72/icon-button
========================

Simple extension for Symfony Form library, to apply icons to buttons

v0.11(9y ago)125MITPHPPHP &gt;=5.5

Since Jun 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/cristianoc72/icon-button)[ Packagist](https://packagist.org/packages/cristianoc72/icon-button)[ RSS](/packages/cristianoc72-icon-button/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Icon-button
===========

[](#icon-button)

[![Build Status](https://camo.githubusercontent.com/3cc4b619ebb9fa26aa7cedc42320b0fa307db8ed70f1f9460ac63514a8aaa921/68747470733a2f2f7472617669732d63692e6f72672f637269737469616e6f6337322f69636f6e2d627574746f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cristianoc72/icon-button)

Icon-button is an extension for Symfony Form button and submit types. You can easily add an icon to your buttons, after or before the label.

By now, only [Bootstrap Glyphicons](http://getbootstrap.com/components) are supported.

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

[](#installation)

Install this package via [composer](http://getcomposer.org):

```
composer require cristianoc72/icon-button

```

### Working with Silex

[](#working-with-silex)

Be sure you've enabled `TwigServiceProvider` and `FormServiceProvider` and all its dependencies. See .

Then register the extension in your Application:

```
