mylistryx/yii2-fontawesome-free

Yii2 FontAwesome Free asset bundle

Installs: 4 255

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

6.7.1.1 2024-12-11 18:32 UTC

This package is auto-updated.

Last update: 2025-03-11 18:59:09 UTC


README

FontAwesome Free asset bundle for Yii 2.0 Framework

Installation

Changelog of package

The preferred way to install this extension is through composer

Either run:

composer require mylistryx/yii2-fontawesome-free or add "mylistryx/yii2-fontawesome-free": "~6.0.0" into your composer.json file.

Then register assets in your view file:

FontAwesomeAsset::register($this) OR FontAwesomeCdnAsset::register($this) to use CDN files.

and use:

<?= FA::icon('name') ?>

<?= FA::icon('pencil') ?>

<?= FA::icon('gear') ?>

<?= FAS::icon('pencil) ?> is same as <?= FA::icon('pencil') ?>

<?= FAB::icon('facebook') ?> - FAB helper for Brands collection

... and so on. Full list of free icons see on fontawesome home page: https://fontawesome.com/icons

Attention!

Other helpers exists only for backward capability with PRO version! Some Solid icons excluded from Free version!

Animation

Animations are represented:

<?= FA::i('gear')->animate((new Beat(3.0))) ?>

<?= FA::i('gear')->animate((new Shake())) ?>

<?= FA::i('gear')->animate((new Spin())) ?>

<?= FA::i('gear')->animate((new Flip())) ?>

<?= FA::i('gear')->animate((new Bounce())) ?>

see source files for more.