PHP code example of siteation / magento2-hyva-icons-flags

1. Go to this page and download the library: Download siteation/magento2-hyva-icons-flags 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/ */

    

siteation / magento2-hyva-icons-flags example snippets



use Hyva\Theme\Model\ViewModelRegistry;
use Siteation\HyvaIconsFlags\ViewModel\FlagsIcons;

/** @var ViewModelRegistry $viewModels */

/** @var FlagsIcons $flagsIcons */
$flagsIcons = $viewModels->

<?= $flagsIcons->nlHtml('p-1', 24, 24, ["aria-label" => "Netherlands"])