vladzur / kogin
Html and Form Builder
0.2.1
2015-12-21 16:43 UTC
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is not auto-updated.
Last update: 2024-12-21 19:27:21 UTC
README
Kogin
This is a FormBuilder for Botstrap 3.x and is in beta state.
Install
Vía composer
composer require vladzur/kogin
Usage
You can simply do...
<?php
include_once 'vendor/autoload.php';
$form = new \Vladzur\Kogin\FormBuilder();
echo $form->open(['action' => 'demo.php']);
echo $form->text('user_name');
echo $form->email('email');
echo $form->password('password');
echo $form->select('chooses', ['One', 'Two', 'Three']);
echo $form->textarea('body');
echo $form->checkbox('remember_me');
echo $form->button('Save', ['class' => 'btn btn-primary']);
echo $form->close();
?>