PHP code example of coder-studio / bootstrap
1. Go to this page and download the library: Download coder-studio/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/ */
coder-studio / bootstrap example snippets
'providers' => [
...
CoderStudio\Bootstrap\Providers\BootstrapServiceProvider::class,
]
'aliases' => [
...
'Bootstrap' => CoderStudio\Bootstrap\Facades\Bootstrap::class,
],
Bootstrap::button($name, $value = null);
Bootstrap::checkbox($name, $value = null);
Bootstrap::hidden($name, $value = null);
Bootstrap::password($name, $value = null);
Bootstrap::reset($name, $value = null);
Bootstrap::submit($name, $value = null);
Bootstrap::text($name, $value = null);
Bootstrap::color($name, $value = null);
Bootstrap::date($name, $value = null);
Bootstrap::datetime($name, $value = null);
Bootstrap::datetime_local($name, $value = null);
Bootstrap::email($name, $value = null);
Bootstrap::number($name, $value = null);
Bootstrap::range($name, $value = null);
Bootstrap::search($name, $value = null);
Bootstrap::tel($name, $value = null);
Bootstrap::time($name, $value = null);
Bootstrap::url($name, $value = null);
Bootstrap::month($name, $value = null);
Bootstrap::week($name, $value = null);
Bootstrap::textarea($name, $value = null);
Bootstrap::select($name, $value = null);
label(string $label)
help(string $help)
addonLeft(string $addon_left)
addonRight(string $addon_right)
valid()
invalid()
sm()
lg()
floatingLabel()
params(array $params)
options(array $options)
id(string $id)
cssClass(string $class)
placeholder(string $placeholder)
rows(string $rows)
get()
blade
<form method="POST" action="asset('submit')">
{!! Bootstrap::text('inputName')->label('label name')->placeholder('label name')->floatingLabel()->id("idName")->params()->get() !!}
</form>