PHP code example of bhazk / icon

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

    

bhazk / icon example snippets


return [
    'default_set' => 'heroicons',
    'default_style' => 'outline',
    'default_color' => 'currentColor',
    'default_size' => 'w-5 h-5',
    'resource_path' => resource_path('icons'),
];

return [
    'default_set' => 'heroicons',
    'default_style' => 'outline',
    'default_color' => 'currentColor',
    'default_size' => 'w-5 h-5',
    'resource_path' => resource_path('icons'),
];
sh
php artisan vendor:publish --tag=bhazk-icon
blade
<x-bhazk::icon name="academic-cap" style="solid" size="w-6 h-6" color="red-500" />
blade
<x-bhazk::icon name="custom-icon" set="myicons" style="solid" />
sh
php artisan vendor:publish --tag=bhazk-icon
blade
<x-bhazk::icon name="academic-cap" style="solid" size="w-6 h-6" color="red-500" />
blade
<x-bhazk::icon name="custom-icon" set="myicons" style="solid" />