1. Go to this page and download the library: Download swarakaka/darejer 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/ */
swarakaka / darejer example snippets
use Darejer\Screen\Screen;
use Darejer\Screen\Section;
use Darejer\Components\TranslatableInput;
use Darejer\Components\SelectComponent;
use Darejer\Actions\SaveAction;
use Darejer\Actions\CancelAction;
public function create(): Response
{
return Screen::make('New Product')
->sections([
Section::make('general')
->title(__darejer('General'))
->components(['name', 'category', 'status']),
])
->components([
TranslatableInput::make('name')
->label('Product Name')
->