PHP code example of vladzur / kogin

1. Go to this page and download the library: Download vladzur/kogin 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/ */

    

vladzur / kogin example snippets


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