PHP code example of hyvor / php-svg-icons
1. Go to this page and download the library: Download hyvor/php-svg-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/ */
hyvor / php-svg-icons example snippets
$icon = new Icon($library, $iconName);
$svg = $icon->getSvg($width, $height);
$icon = new Icon('bootstrap', '123');
$icon->getSvg(); // 16x16
$icon->getSvg(20); // 20x20
$icon->getSvg(20, 25); // 20x25
bash
composer