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    
Last Updated Ratings Unique User Downloads Download Rankings
2023-10-16 (11 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 59 All time: 10,513 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
Age: 55
All time rank: 19476 in Latvia Latvia
Week rank: 170 Up1 in Latvia Latvia Up
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

  Files folder image Files (70)  /  assets  
File Role Description
Files folder imageicons (2 directories)

  Files folder image Files (70)  /  assets  /  icons  
File Role Description
Files folder imageflags (5 files)
Files folder imagesvg (58 files)

  Files folder image Files (70)  /  assets  /  icons  /  flags  
File Role Description
  Accessible without login Image file AU.png Icon Icon image
  Accessible without login Image file BR.png Icon Icon image
  Accessible without login Image file DE.png Icon Icon image
  Accessible without login Image file GB.png Icon Icon image
  Accessible without login Image file US.png Icon Icon image

  Files folder image Files (70)  /  assets  /  icons  /  svg  
File Role Description
  Accessible without login Plain text file alert-circle.svg Data Auxiliary data
  Accessible without login Plain text file alert-triangle-solid.svg Data Auxiliary data
  Accessible without login Plain text file archive.svg Data Auxiliary data
  Accessible without login Plain text file arrow-narrow-down-left.svg Data Auxiliary data
  Accessible without login Plain text file arrow-narrow-left.svg Data Auxiliary data
  Accessible without login Plain text file arrow-narrow-right.svg Data Auxiliary data
  Accessible without login Plain text file arrow-narrow-up-right.svg Data Auxiliary data
  Accessible without login Plain text file arrow-narrow-up.svg Data Auxiliary data
  Accessible without login Plain text file bell-1.svg Data Auxiliary data
  Accessible without login Plain text file calendar-check-1.svg Data Auxiliary data
  Accessible without login Plain text file calendar.svg Data Auxiliary data
  Accessible without login Plain text file camera-plus.svg Data Auxiliary data
  Accessible without login Plain text file check-circle-solid.svg Data Auxiliary data
  Accessible without login Plain text file check.svg Data Auxiliary data
  Accessible without login Plain text file chevron-down.svg Data Auxiliary data
  Accessible without login Plain text file chevron-left.svg Data Auxiliary data
  Accessible without login Plain text file chevron-right.svg Data Auxiliary data
  Accessible without login Plain text file chevron-up.svg Data Auxiliary data
  Accessible without login Plain text file circle.svg Data Auxiliary data
  Accessible without login Plain text file clipboard-check.svg Data Auxiliary data
  Accessible without login Plain text file coins-3.svg Data Auxiliary data
  Accessible without login Plain text file copy-1.svg Data Auxiliary data
  Accessible without login Plain text file credit-card-2.svg Data Auxiliary data
  Accessible without login Plain text file dataflow-3.svg Data Auxiliary data
  Accessible without login Plain text file dataflow-4.svg Data Auxiliary data
  Accessible without login Plain text file dots-vertical.svg Data Auxiliary data
  Accessible without login Plain text file download-1.svg Data Auxiliary data
  Accessible without login Plain text file download-cloud-1-solid.svg Data Auxiliary data
  Accessible without login Plain text file edit-5.svg Data Auxiliary data
  Accessible without login Plain text file eye-off.svg Data Auxiliary data
  Accessible without login Plain text file eye.svg Data Auxiliary data
  Accessible without login Plain text file file-2.svg Data Auxiliary data
  Accessible without login Plain text file help-circle.svg Data Auxiliary data
  Accessible without login Plain text file home-1.svg Data Auxiliary data
  Accessible without login Plain text file info-circle-solid.svg Data Auxiliary data
  Accessible without login Plain text file key-1.svg Data Auxiliary data
  Accessible without login Plain text file language.svg Data Auxiliary data
  Accessible without login Plain text file lock-2.svg Data Auxiliary data
  Accessible without login Plain text file log-out-4.svg Data Auxiliary data
  Accessible without login Plain text file menu-3.svg Data Auxiliary data
  Accessible without login Plain text file menu.svg Data Auxiliary data
  Accessible without login Plain text file minus-square-solid.svg Data Auxiliary data
  Accessible without login Plain text file minus.svg Data Auxiliary data
  Accessible without login Plain text file phone-solid.svg Data Auxiliary data
  Accessible without login Plain text file pie-chart-1.svg Data Auxiliary data
  Accessible without login Plain text file plus-square.svg Data Auxiliary data
  Accessible without login Plain text file plus.svg Data Auxiliary data
  Accessible without login Plain text file search-sm.svg Data Auxiliary data
  Accessible without login Plain text file settings-2.svg Data Auxiliary data
  Accessible without login Plain text file share-4.svg Data Auxiliary data
  Accessible without login Plain text file star-1-solid.svg Data Auxiliary data
  Accessible without login Plain text file star-1.svg Data Auxiliary data
  Accessible without login Plain text file trash-4.svg Data Auxiliary data
  Accessible without login Plain text file user-plus-2.svg Data Auxiliary data
  Accessible without login Plain text file users-1.svg Data Auxiliary data
  Accessible without login Plain text file users-left.svg Data Auxiliary data
  Accessible without login Plain text file x-circle-solid.svg Data Auxiliary data
  Accessible without login Plain text file x-close.svg Data Auxiliary data

  Files folder image Files (70)  /  components  
File Role Description
  Plain text file IconFa.php Class Class source
  Plain text file IconSvg.php Class Class source

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,513
This week:69Up