PHP Classes

D3 PHP Icon SVG Image Render: Generate HTML for standard icons and country flags

Recommend this page to a friend!
  Info   View files Documentation   View files View files (70)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2023-10-16 (5 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 43 This week: 43All time: 10,670 This week: 2Up
Version License PHP version Categories
d3icon 1.0Freeware5HTML, PHP 5, Graphics
Description 

Author

This package can generate HTML for standard icons and country flags.

It can take the name of a country flag or icon image and return the HTML to display the icon or image on a Web page.

The package can also take a format parameter to determine whether it should return the HTML to display the icon or image using a PNG or SVG image file.

Picture of Uldis Nelsons
Name: Uldis Nelsons <contact>
Classes: 18 packages by
Country: Latvia Latvia
Innovation award
Innovation award
Nominee: 12x

Winner: 2x

 

Documentation

D3Icons

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)


  Files folder image Files  
File Role Description
Files folder imageassets (1 directory)
Files folder imagecomponents (2 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Plain text file Icon.php Class Class source
Plain text file IconAsset.php Class Class source
Plain text file Module.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:43
This week:43
All time:10,670
This week:2Up