All options are ready to use and will generate HTML markup according to the chosen framework.
The default framework is Bootstrap 5.
If none of the available frameworks powers your website, we provide a minimal version of Bootstrap 5 CSS to design your forms.
$form = new Form('my-form', 'horizontal', 'novalidate', 'bs4');
$form = new Form('my-form', 'horizontal', 'novalidate');
$form = new Form('my-form', 'horizontal', 'novalidate', 'bulma');
$form = new Form('my-form', 'horizontal', 'novalidate', 'foundation');
Material Design forms are built with Materialize framework.
Pages created with Materialize or Bootstrap 4 can both include Material Design forms.
If your website uses Materialize framework:
$form = new Form('my-form', 'horizontal', 'novalidate', 'material');
If your website uses Bootstrap 4 framework:
$form = new Form('my-form', 'horizontal', 'novalidate', 'material');
// materialize plugin
$form->addPlugin('materialize', '#my-form');
$form = new Form('my-form', 'horizontal', 'novalidate', 'tailwind');
$form = new Form('my-form', 'horizontal', 'novalidate', 'uikit');
Add the minimal Bootstrap 5 CSS to your page head, then you can build your forms with Bootstrap 5.
This style sheet only includes what is necessary to layout your responsive forms and will not break anything in the other parts of your pages.
<head>
// link to the minimal Bootstrap 5 CSS
<link rel="stylesheet" href="/phpformbuilder/templates/assets/bootstrap5-phpfb/css/bootstrap5-phpfb.min.css">
</head>
<?php
// Then you can build your form
$form = new Form('my-form', 'horizontal', 'novalidate');