PHP code example of ympact / flux-icons

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

    

ympact / flux-icons example snippets


'vendors' => [
    'tabler' => [
        'vendor_name' => 'Tabler',
        'namespace' => 'tabler',
        'package_name' => '@tabler/icons',
        'source_directories' => [ 
            //...
        ]
    ]
 ]

[
    'dir' => 'node_modules/vendor/icons/...',
    'prefix' => null,
    'suffix' => null 
    'filter' => [ Ympact\FluxIcons\Services\Vendor\VendorName::class, 'filter']
]

'solid' => [ 
    [
        'dir' => 'node_modules/vendor/icons/icons/filled', 
        'prefix' => null, 
        'suffix' => [ Ympact\FluxIcons\Services\Vendor\VendorName::class, 'sourceSolidSuffix']
    ],
],
cmd
php artisan flux-icons:build tabler --icons=confetti,confetti-off
cmd
php artisan vendor:publish --tag=flux-icons-config
cmd
php artisan flux-icons:publish {vendor}
cmd
php artisan vendor:publish --tag=flux-icons-icons
html
  <flux:icon name="{{ $icon ?? 'flux-icons.empty' }}" />
  
html
  <flux:icon.flux-icons.avatar-placeholder name="Maurits Korse" color="green" />
  <flux:icon.flux-icons.avatar-placeholder icon color="green" />