PHP Classes

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

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 59 All time: 10,526 This week: 69Up
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.

Innovation Award
PHP Programming Innovation award nominee
October 2023
Number 6
Many Web applications need to use standard icons or country images to display on the application pages so the application users can easily recognize the images and understand their meaning.

The images can be displayed in several formats. SVG is better to display the images with good quality. In some cases, the images need to be displayed in PNG format, for instance, when you use the images as a favicon for the Web site favorite icon image.

This package makes generating HTML to display standard icons or country flag images in PNG or SVG formats easier.

Manuel Lemos
Picture of Uldis Nelsons
Name: Uldis Nelsons <contact>
Classes: 19 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 (70)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:59
This week:0
All time:10,526
This week:69Up