PHP code example of bmd / enable-list-icons

1. Go to this page and download the library: Download bmd/enable-list-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/ */

    

bmd / enable-list-icons example snippets


use Bmd\EnableListIcons\Controller;
use Bmd\EnableListIcons\Services\FilePathResolver;
use Bmd\EnableListIcons\Services\UrlResolver;
use function DI\autowire;
use function DI\string;

$definitions = e-list-icons/' )
            ),

        UrlResolver::class => autowire()
            ->constructorParameter(
                'url',
                string( '{url}vendor/bmd/enable-list-icons/' )
            ),
    ]
);

use Bmd\EnableListIcons\Main;

$enable_list_icons = new Main(
    [
        'package' => 'enable_list_icons',
        'path'    => plugin_dir_path( __FILE__ ) . 'vendor/bmd/enable-list-icons/',
        'url'     => plugin_dir_url( __FILE__ ) . 'vendor/bmd/enable-list-icons/',
    ]
);

$enable_list_icons->mount();

add_filter( 'enable_list_icons_icon_families', function ( $families ) {
    $families['brand-icons'] = array(
        'label' => 'Brand Icons',
        'url'   => plugin_dir_url( __FILE__ ) . 'icons/brand-icons.json',
    );

    return $families;
} );