1. Go to this page and download the library: Download velt/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/ */
velt / ui example snippets
use Velt\Ui\Components\Button;
use Velt\Ui\Components\Card;
use Velt\Ui\Components\Text;
use Velt\Ui\Page;
use Velt\Ui\Renderers\WebRenderer;
$page = Page::make('Dashboard')->add(
Card::make()->class('rounded-xl border p-6')
->add(Text::make('Bienvenue')->as('h1'))
->add(Button::make('Continuer')->variant('primary'))
);
$html = (new WebRenderer())->render($page);