mylistryx / yii2-fontawesome-pro
Yii2 FontAwesome PRO asset bundle
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:yii2-extension
pkg:composer/mylistryx/yii2-fontawesome-pro
Requires
- php: >=8.2
- yiisoft/yii2: ~2.0.50
This package is auto-updated.
Last update: 2025-12-12 17:59:04 UTC
README
Installation
The preferred way to install this extension is through composer
Either run:
composer require mylistryx/yii2-fontawesome-pro or add "mylistryx/yii2-fontawesome-pro": "~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:
<?= FAS::icon('gear') ?> - Solid
<?= FADS::icon('gear') ?> - Duotone Solid
<?= FASS::icon('gear') ?> - Shape Solid
<?= FASDS::icon('gear') ?> - Shape Duotone Solid
<?= FAL::icon('gear') ?> - Light
<?= FADL::icon('gear') ?> - Duotone Light
<?= FASL::icon('gear') ?> - Shape Light
<?= FASDL::icon('gear') ?> - Shape Duotone Light
<?= FAR::icon('gear') ?> - Regular
<?= FADR::icon('gear') ?> - Duotone Regular
<?= FASR::icon('gear') ?> - Shape Regular
<?= FASDR::icon('gear') ?> - Shape Duotone Regular
<?= FAT::icon('gear') ?> - Thin
<?= FADT::icon('gear') ?> - Duotone Thin
<?= FAST::icon('gear') ?> - Shape Thin
<?= FASDT::icon('gear') ?> - Shape Duotone Thin
... and so on. Full list of free icons see on fontawesome home page: https://fontawesome.com/icons
Some 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.