Example 1 - Default theme green

$form = new Form('plugins-icheck-form-1', 'horizontal');

$form->addRadio('yes-or-no', 'No', 0);
$form->addRadio('yes-or-no', 'Yes', 1);
$form->printRadioGroup('yes-or-no', 'Yes or No?', true, 'required');

$form->addCheckbox('check-this', 'I agree', 1);
$form->printCheckboxGroup('check-this', 'Please check');

$form->addPlugin('icheck', 'input', 'default', ['theme' => 'square', 'color' => 'green']);

Your copy of PHP Form Builder is NOT authorized.
About PHP Form Builder License

<div class="row mb-3">
	<label required class="main-label main-label-inline col-sm-4 col-form-label">
		Yes or No? <sup class="text-danger">* </sup>
	</label>
	<div class="col-sm-8">
		<div class="form-check form-check-inline">
			<input type="radio" id="yes-or-no_0" name="yes-or-no" value="0" required  class="form-check-input">
			<label for="yes-or-no_0"  class="form-check-label">
				No
			</label>
		</div>
		<div class="form-check form-check-inline">
			<input type="radio" id="yes-or-no_1" name="yes-or-no" value="1" required  class="form-check-input">
			<label for="yes-or-no_1"  class="form-check-label">
				Yes
			</label>
		</div>
	</div>
</div>
<div class="row mb-3">
	<label  class="main-label main-label-inline col-sm-4 col-form-label">
		Please check
	</label>
	<div class="col-sm-8">
		<div class="form-check form-check-inline">
			<input type="checkbox" id="check-this_0" name="check-this[]" value="1"  class="form-check-input">
			<label for="check-this_0" class="form-check-label">
				I agree
			</label>
		</div>
	</div>
</div>

Example 2 - Line theme purple

$form = new Form('plugins-icheck-form-2', 'horizontal');

$form->addRadio('yes-or-no-2', 'No', 0);
$form->addRadio('yes-or-no-2', 'Yes', 1);
$form->printRadioGroup('yes-or-no-2', 'Yes or No?', true, 'required');

$form->addCheckbox('check-this-2', 'I agree', 1);
$form->printCheckboxGroup('check-this-2', 'Please check');

$form->addPlugin('icheck', 'input', 'line', ['color' => 'purple']);

Your copy of PHP Form Builder is NOT authorized.
About PHP Form Builder License

<div class="row mb-3">
	<label required class="main-label main-label-inline col-sm-4 col-form-label">
		Yes or No? <sup class="text-danger">* </sup>
	</label>
	<div class="col-sm-8">
		<div class="form-check form-check-inline">
			<input type="radio" id="yes-or-no-2_0" name="yes-or-no-2" value="0" required  class="form-check-input">
			<label for="yes-or-no-2_0"  class="form-check-label">
				No
			</label>
		</div>
		<div class="form-check form-check-inline">
			<input type="radio" id="yes-or-no-2_1" name="yes-or-no-2" value="1" required  class="form-check-input">
			<label for="yes-or-no-2_1"  class="form-check-label">
				Yes
			</label>
		</div>
	</div>
</div>
<div class="row mb-3">
	<label  class="main-label main-label-inline col-sm-4 col-form-label">
		Please check
	</label>
	<div class="col-sm-8">
		<div class="form-check form-check-inline">
			<input type="checkbox" id="check-this-2_0" name="check-this-2[]" value="1"  class="form-check-input">
			<label for="check-this-2_0" class="form-check-label">
				I agree
			</label>
		</div>
	</div>
</div>

Example 3 - Futurico theme

$form = new Form('plugins-icheck-form-3', 'horizontal', 'class=bg-gray-800 text-white p-4');

$form->addRadio('yes-or-no-3', 'No', 0);
$form->addRadio('yes-or-no-3', 'Yes', 1);
$form->printRadioGroup('yes-or-no-3', 'Yes or No?', true, 'required');

$form->addCheckbox('check-this-3', 'I agree', 1);
$form->printCheckboxGroup('check-this-3', 'Please check');

$form->addPlugin('icheck', 'input', 'theme', ['theme' => 'futurico']);

Your copy of PHP Form Builder is NOT authorized.
About PHP Form Builder License

<div class="row mb-3">
	<label required class="main-label main-label-inline col-sm-4 col-form-label">
		Yes or No? <sup class="text-danger">* </sup>
	</label>
	<div class="col-sm-8">
		<div class="form-check form-check-inline">
			<input type="radio" id="yes-or-no-3_0" name="yes-or-no-3" value="0" required  class="form-check-input">
			<label for="yes-or-no-3_0"  class="form-check-label">
				No
			</label>
		</div>
		<div class="form-check form-check-inline">
			<input type="radio" id="yes-or-no-3_1" name="yes-or-no-3" value="1" required  class="form-check-input">
			<label for="yes-or-no-3_1"  class="form-check-label">
				Yes
			</label>
		</div>
	</div>
</div>
<div class="row mb-3">
	<label  class="main-label main-label-inline col-sm-4 col-form-label">
		Please check
	</label>
	<div class="col-sm-8">
		<div class="form-check form-check-inline">
			<input type="checkbox" id="check-this-3_0" name="check-this-3[]" value="1"  class="form-check-input">
			<label for="check-this-3_0" class="form-check-label">
				I agree
			</label>
		</div>
	</div>
</div>

Example 4 - Polaris theme

$form = new Form('plugins-icheck-form-4', 'horizontal', 'class=bg-gray-800 text-white p-4');

$form->addRadio('yes-or-no-4', 'No', 0);
$form->addRadio('yes-or-no-4', 'Yes', 1);
$form->printRadioGroup('yes-or-no-4', 'Yes or No?', true, 'required');

$form->addCheckbox('check-this-4', 'I agree', 1);
$form->printCheckboxGroup('check-this-4', 'Please check');

$form->addPlugin('icheck', 'input', 'theme', ['theme' => 'polaris']);

Your copy of PHP Form Builder is NOT authorized.
About PHP Form Builder License

<div class="row mb-3">
	<label required class="main-label main-label-inline col-sm-4 col-form-label">
		Yes or No? <sup class="text-danger">* </sup>
	</label>
	<div class="col-sm-8">
		<div class="form-check form-check-inline">
			<input type="radio" id="yes-or-no-4_0" name="yes-or-no-4" value="0" required  class="form-check-input">
			<label for="yes-or-no-4_0"  class="form-check-label">
				No
			</label>
		</div>
		<div class="form-check form-check-inline">
			<input type="radio" id="yes-or-no-4_1" name="yes-or-no-4" value="1" required  class="form-check-input">
			<label for="yes-or-no-4_1"  class="form-check-label">
				Yes
			</label>
		</div>
	</div>
</div>
<div class="row mb-3">
	<label  class="main-label main-label-inline col-sm-4 col-form-label">
		Please check
	</label>
	<div class="col-sm-8">
		<div class="form-check form-check-inline">
			<input type="checkbox" id="check-this-4_0" name="check-this-4[]" value="1"  class="form-check-input">
			<label for="check-this-4_0" class="form-check-label">
				I agree
			</label>
		</div>
	</div>
</div>