Download the PHP package hofff/contao-iconfont without Composer
On this page you can find all versions of the php package hofff/contao-iconfont. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hofff/contao-iconfont
More information about hofff/contao-iconfont
Files in hofff/contao-iconfont
Package contao-iconfont
Short Description Insert tag for Contao Open Source CMS to insert FontAwesome icons and individual icons
License LGPL-3.0-or-later
Homepage https://www.hofff.com
Informations about the package contao-iconfont
Contao Extension: hofff.com - Iconfont
This extension provides some insert tags to insert FontAwesome and individual icons.
Features
insert all FontAwesome icons
Basic Use
see https://fontawesome.com/how-to-use/on-the-web/referencing-icons/basic-use
*``{{icon-fa::icon-name}}``** [^FontAwesome-Style]
Fixed Width Icons
see https://fontawesome.com/how-to-use/on-the-web/styling/fixed-width-icons
*``{{icon-fa-fw::icon-name}}``** [^FontAwesome-Style]
Bordered + Pulled Icons
see https://fontawesome.com/how-to-use/on-the-web/styling/bordered-pulled-icons
wrap text around an icon - left
*``{{icon-fa-left::icon-name}}``** [^FontAwesome-Style]
wrap text around an icon - right
*``{{icon-fa-right::icon-name}}``** [^FontAwesome-Style]
wrap text around an icon with border - left
*``{{icon-fa-border-left::icon-name}}``** [^FontAwesome-Style]
wrap text around an icon with border - right
*``{{icon-fa-border-right::icon-name}}``** [^FontAwesome-Style]
Animating Icons
see https://fontawesome.com/how-to-use/on-the-web/styling/animating-icons
rotate icon
*``{{icon-fa-spin::icon-name}}``** [^FontAwesome-Style]
pulse icon
*``{{icon-fa-pulse::icon-name}}``** [^FontAwesome-Style]
Rotating Icons
see https://fontawesome.com/how-to-use/on-the-web/styling/rotating-icons
turn 90° clockwise
*``{{icon-fa-rotate-90::icon-name}}``** [^FontAwesome-Style]
turn 180° clockwise
*``{{icon-fa-rotate-180::icon-name}}``** [^FontAwesome-Style]
turn 270° clockwise
*``{{icon-fa-rotate-270::icon-name}}``** [^FontAwesome-Style]
mirror icon horizontally
*``{{icon-fa-flip-horizontal::icon-name}}``** [^FontAwesome-Style]
mirror icon vertically
*``{{icon-fa-flip-vertical::icon-name}}``** [^FontAwesome-Style]
mirror icon vertically and horizontally (requires 5.7.0 or greater)
*``{{icon-fa-flip-both::icon-name}}``** [^FontAwesome-Style]
Stacked Icons
see https://fontawesome.com/how-to-use/on-the-web/styling/stacking-icons
icon with square background
*``{{icon-fa-square::icon-name}}``**
icon with square background - only border
*``{{icon-fa-square-border::icon-name}}``**
icon with circle background
*``{{icon-fa-circle::icon-name}}``**
icon with circle background - only border
*``{{icon-fa-circle-border::icon-name}}``**
icon with prohibition sign
{{icon-fa-ban::icon-name}}
insert your own icon font (you have to provide some css by your own)
{{icon::your-icon-name}}
CSS Example for your own icon font
Installation
Install the extension via composer: hofff/contao-iconfont.
If you prefer to install it manually, download the latest release here: https://github.com/hofff/contao-iconfont/releases
Compatibility
- min. Contao version: ^4.9
- PHP min. 7.4 || 8.0
Dependency
- You have to include FontAwesome sources see https://fontawesome.com/start
[^FontAwesome-Style]: The *
should be replaced with the FontAwesome-Style you want: fas=Solid, far=Regular, fal=Light or fab=Brands
All versions of contao-iconfont with dependencies
contao/core-bundle Version ^4.13 || ^5.3
symfony/config Version ^5.4 || ^6.4
symfony/dependency-injection Version ^5.4 || ^6.4
symfony/http-kernel Version ^5.4 || ^6.4