d3yii2/d3icon

Yii2 module for SVG and Font Awesome icons

dev-main 2024-01-23 05:24 UTC

This package is auto-updated.

Last update: 2024-10-23 07:06:11 UTC


README

icons

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist d3yii2/d3icons "*"

or add

"d3yii2/d3labels": "*"

to the require section of your composer.json file.

Usage

by type

echo Icon::icon(d3yii2\d3icon\Icon::TYPE_SVG,d3yii2\d3icon\components\IconSvg::ALERT_CIRCLE);

direct method

echo d3yii2\d3icon\Icon::svg(d3yii2\d3icon\components\IconSvg::EYE);
echo Icon::fa('pencil)