PHP code example of elegantly / blade-kit

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

    

elegantly / blade-kit example snippets


use Elegantly\Kit\Ui\Base;
use Elegantly\Kit\Ui\Button;
use Elegantly\Kit\Ui\Input;
use Elegantly\Kit\Ui\Select;
use Elegantly\Kit\Ui\SwitchUi;
use Elegantly\Kit\Ui\Tag;

return [

    'ui' => [
        'base' => Base::class,
        'button' => Button::class,
        'input' => Input::class,
        'select' => Select::class,
        'tag' => Tag::class,
        'switch' => SwitchUi::class,
    ],

];
css
@import "../../vendor/elegantly/blade-kit/theme.css";
@source "../../vendor/elegantly/blade-kit/resources/views/**/*.blade.php";
@source "../../vendor/elegantly/blade-kit/src/Ui/**/*.php";
bash
php artisan vendor:publish --tag="blade-kit-config"
bash
php artisan vendor:publish --tag="blade-kit-views"