Download the PHP package armin/font-awesome-bundle without Composer
On this page you can find all versions of the php package armin/font-awesome-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download armin/font-awesome-bundle
More information about armin/font-awesome-bundle
Files in armin/font-awesome-bundle
Package font-awesome-bundle
Short Description Symfony bundle to provide Font Awesome svg icons as inline svg sprite.
License MIT
Informations about the package font-awesome-bundle
FontAwesome - Symfony Bundle
This bundle for Symfony Framework, allows you to add FontAwesome SVG icons, inline in your html.
It is released under MIT license.
Installation
To install this package, you can just use composer:
This will also require the fortawesome/font-awesome package.
Please make sure, you've registred the bundle correctly in your project's config/bundles.php
.
There is no configuration to be made.
Features
- Embed FontAwesome svg icons in our html output
- Without need of any CSS or JavaScript include
- Usage of SVG sprites:
- When the same icon is used several times on the same page (e.g. arrow icons), every additional instance of this icon will point to the first occurence in html output
- Each instance can have individual options, like size or color
- This saves space, in html output
- No need to copy/symlink SVG assets from
vendor/
topublic/
Usage
Once this bundle is installed, you can use the following Twig function:
It is recommended, to add some default CSS.
All icons in html output, will have got the class fa-svg-icon
set:
When you provide options, like size or color, inline styles will overwrite the default CSS.
Support
If you like this Symfony bundle, you are invited to donate some funds to support further development. Thank you!
For help please visit the issue section on Github.
All versions of font-awesome-bundle with dependencies
ext-dom Version *
symfony/framework-bundle Version ^4.0 | ^5.0
symfony/twig-bridge Version ^4.0 | ^5.0
fortawesome/font-awesome Version ^5.13