PHP code example of aimanecouissi / module-hyva-simple-icons

1. Go to this page and download the library: Download aimanecouissi/module-hyva-simple-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/ */

    

aimanecouissi / module-hyva-simple-icons example snippets




use AimaneCouissi\HyvaSimpleIcons\ViewModel\SimpleIcons;
use Hyva\Theme\Model\ViewModelRegistry;

/** @var ViewModelRegistry $viewModels */

$simpleIcons = $viewModels->

<?= $simpleIcons->phpHtml('w-6 h-6', 24, 24, ['aria-label' => 'PHP']) 
txt
{{icon "simpleicons/php" classes="inline-block w-6 h-6" width=24 height=24}}