1. Go to this page and download the library: Download uiforge/uiunit 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/ */
uiforge / uiunit example snippets
// Tambahkan di atas definisi route accordion
$routes->addPlaceholder('accordionTitle', '[a-zA-Z0-9\-_ ]+');
// Route GET untuk mendapatkan semua state dari cookie
$routes->get(
'accordion-state',
'AccordionState::get',
['namespace' => 'Forge\Uiunit\Controllers']
);
// Route POST untuk menyimpan perubahan state berdasarkan title
$routes->post(
'accordion-state/save/(:accordionTitle)',
'AccordionState::save/$1',
['namespace' => 'Forge\Uiunit\Controllers']
);