PHP code example of mrjulio / rapture-form
1. Go to this page and download the library: Download mrjulio/rapture-form 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/ */
mrjulio / rapture-form example snippets
$element = new Textarea('comment');
echo Html::element($element);
// form
$form = new \Rapture\Form\Form('test');
$form->setElements([
'username' => [
'name' => 'username',
'type' => 'Text',
'attributes' => [
'class' => 'form-control'
],
'meta' => [
'help' => 'Your username'
]
]
]);
echo Html::element($form->getElement('username'));