PHP code example of digiti / form-builder
1. Go to this page and download the library: Download digiti/form-builder 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/ */
digiti / form-builder example snippets
public function schema(): array
{
return [
...
];
}
public function submit(): void
{
//OnFormSubmitted::dispatch($this->result);
}
Step::make([])->reactive(function () {
return isset($this->result['company']) && $this->result['company'] == 'Digiti' ? true : false;
})
Chapter::make([])->reactive(function () {
return isset($this->result['company']) && $this->result['company'] == 'Digiti' ? true : false;
})