1. Go to this page and download the library: Download zofe/dataform 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/ */
zofe / dataform example snippets
$form = DataForm::create();
$form->text('title','Title'); //field name, label
$form->text('body','Body')->rule('
$form->message("ok record saved");
$form->linkRoute("home","Back to the Form");
});
...
$form = DataForm::source(User::find(1));
$form->text('title','Title'); //field name, label
$form->textarea('body','Body')->rule(' $form->saved(function() use ($form)
{
$form->message("ok record saved");
$form->linkRoute("home","Back to the Form");
});
...