1. Go to this page and download the library: Download guisaldanha/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/ */
guisaldanha / form-builder example snippets
GuiSaldanha\FormBuilder\Form;
$form = new Form('POST', 'enviar.php', "Enviar Mensagem");
// $form->setHidePlaceholder(true);
// $form->setHideLabel(true);
$form->addField('nome*', 'Nome', 'text');
$form->addField('email*', 'Email', 'email');
$form->addField('telefone*', 'Telefone', 'tel');
$form->addField('comoConheceu', 'Onde nos conheceu?', 'select', ['Google', 'Facebook', 'Instagram', 'Youtube', 'Outros']);
$form->addField('mensagem*', 'Diga alguma coisa', 'textarea');
$form->addField('newsletter*', 'Quero receber novidades e promoções sobre o site', 'checkbox');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.