1. Go to this page and download the library: Download uspdev/forms 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/ */
uspdev / forms example snippets
$form = [
'name' => 'contact_form', // chave de acesso ao form
'group' => config('uspdev-forms.defaultGroup'), // permite agrupar vários forms
'description' => 'A form for user inquiries.',
'fields' => [
[
[
'name' => 'name',
'type' => 'text',
'label' => 'Nome (text)',
']
],
[
'name' => 'message',
'type' => 'textarea',
'label' => 'Mensagem (textarea)',
],
],
];
FormDefinition::create($form);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.