PHP code example of eminos / statamic-iconify

1. Go to this page and download the library: Download eminos/statamic-iconify 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/ */

    

eminos / statamic-iconify example snippets


return [
    // Only allow these icon sets (empty = all)
    'allowed_prefixes' => ['mdi', 'tabler', 'heroicons', 'ph'],

    // Only allow icon sets from these categories (empty = all)
    // Available: Material, UI 24px, UI 16px / 32px, UI Multicolor,
    // UI Other / Mixed Grid, Thematic, Emoji, Logos, Flags / Maps,
    // Animated Icons, Archive / Unmaintained
    'allowed_categories' => [],

    // Only allow icon sets with these licenses (empty = all)
    // e.g. 'MIT', 'Apache 2.0', 'CC BY 4.0'
    'allowed_licenses' => [],

    // Default storage format for new fields
    'default_store_as' => 'name',
];
cli
php artisan vendor:publish --tag=statamic-iconify-config