1. Go to this page and download the library: Download xicrow/php-icons library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// Made-up constants
$oStatusIcon = BaseIcon::Icon(BaseIcon::Icon_Bullet, BaseIcon::Modifier_Size_X2);
// Looping a resultset
foreach ($arrResults as $oResult) {
// Clone the status icon, set color from result, and render
echo (clone $oStatusIcon)->attribute('style', 'color: '.$oResult->strStatusColor.';');
}
class FA extends \Xicrow\PhpIcons\FontAwesome5 {}
echo FA::Icon(FA::Icon_Thumbs_Up, FA::Modifier_Lg);
class FA extends \Xicrow\PhpIcons\FontAwesome5 {
public static function IconCreate(): self
{
return static::Icon(static::Icon_Plus_Circle)->attribute('style', 'color: green;');
}
public static function IconEdit(): self
{
return static::Icon(static::Icon_Pencil)->attribute('style', 'color: blue;');
}
public static function IconDelete(): self
{
return static::Icon(static::Icon_Trash)->attribute('style', 'color: red;');
}
}
echo FA::IconCreate();
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.