PHP code example of esoboy / ui

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

    

esoboy / ui example snippets


use Esoboy\Ui\Facades\Ui;

Ui::toast('Saved', type: 'success');
Ui::dialog('edit-profile')->close();
Ui::countdown('sms');

$post->body = Ui::sanitize($this->body, 'basic');

Ui::editor('body')->insert([['url' => $file->url, 'name' => $file->name, 'mime' => $file->mime]]);

Ui::editor($request['name'])->resolveMedia($request['requestId'], $attachments);
Ui::editor($request['name'])->resolveMedia($request['requestId']); // cancel
bash
php artisan vendor:publish --tag=ui-assets --force