terabytesoft/font-awesome

There is no license information available for the latest version (dev-master) of this package.

Assets Font Awesome Free

dev-master / 1.0.0.x-dev 2021-11-09 10:13 UTC

README

68747470733a2f2f6c68332e676f6f676c6575736572636f6e74656e742e636f6d2f65685354506e5871726b6b304d33552d5550436a4330667479394b366c67796b4b32574f5541326e5548703867496b526a65544e387a385341426c6b766376522d39504972626f7849765047756a50675765624c51654848675837794c556f7846536475695a72546f6736576f5a4c694176716354523151545056526d6e733274596a414370703745513d7732343030 logo-fontawesome.jpg

Yii Extension Fontawesome Free Extension


Total Downloads build static analysis

Installation:

composer require yii-extension/fontawesome

How to use:

The package provides all available versions CDN, DEV, MIN.

In view (Example CDN All fonts css):

<?php

declare(strict_types=1);

use Yii\Extension\Fontawesome\Cdn\Css\CdnAllAsset;

$assetManager->register(CdnAllAsset::class);
$this->setCssFiles($assetManager->getCssFiles());
$this->setJsFiles($assetManager->getJsFiles());

In view (Example DEV brand fonts js):

<?php

declare(strict_types=1);

use Yii\Extension\Fontawesome\Dev\Js\NpmBrandAsset;

$assetManager->register(NpmBrandAsset::class);
$this->setCssFiles($assetManager->getCssFiles());
$this->setJsFiles($assetManager->getJsFiles());

In view (Example MIN solid fonts css):

<?php

declare(strict_types=1);

use Yii\Extension\Fontawesome\Min\Css\NpmSolidAsset;

$assetManager->register(NpmSolidAsset::class);
$this->setCssFiles($assetManager->getCssFiles());
$this->setJsFiles($assetManager->getJsFiles());

Unit testing

The package is tested with PHPUnit. To run tests:

./vendor/bin/phpunit

Mutation testing

The package tests are checked with Infection mutation framework. To run it:

./vendor/bin/infection

Static analysis

The code is statically analyzed with Psalm. To run static analysis:

./vendor/bin/psalm