PHP code example of nerdcel / kirby3-icon-sprite

1. Go to this page and download the library: Download nerdcel/kirby3-icon-sprite 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/ */

    

nerdcel / kirby3-icon-sprite example snippets


 echo svgSprite();  

'nerdcel.icon-sprite' => [
    'withStyles' => true,
    'fill' => '#0a0a0a',
    'width' => '24px',
    'aspectRatio' => '1'
]