PHP code example of form-manager / bootstrap

1. Go to this page and download the library: Download form-manager/bootstrap 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/ */

    

form-manager / bootstrap example snippets


use FormManager\Bootstrap;

$myForm = Bootstrap::form([
	'name' => Bootstrap::text()->label('Your name'),
	'email' => Bootstrap::email()->label('Your email')
]);

echo $myForm;

use FormManager\Bootstrap;

$myHorizontalForm = Bootstrap::formHorizontal($fields);
$myInlineForm = Bootstrap::formInline($fields);

use FormManager\Bootstrap;

$myForm = Bootstrap::form([
	'name' => Bootstrap::text()->label('Your name')->set('size', 'lg'),
	'email' => Bootstrap::email()->label('Your email')->set([
		'addon-before' => '@',
		'help' => 'Insert here your email'
	])
]);

echo $myForm;