vladzur/kogin

Html and Form Builder

0.2.1 2015-12-21 16:43 UTC

README

Codacy Badge Build Status

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();
?>