PHP code example of starring-jane / wordplate-fontawesome-picker

1. Go to this page and download the library: Download starring-jane/wordplate-fontawesome-picker 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/ */

    

starring-jane / wordplate-fontawesome-picker example snippets


use StarringJane\WordplateFontawesomePicker\WordplateFontawesomePicker;

$path_to_icons = '...';

WordplateFontawesomePicker::create($path_to_icons);

use StarringJane\WordplateFontawesomePicker\Fields\IconPicker;

IconPicker::make('Icon')
    ->instructions('Click to select an icon');