PHP code example of italix / forms

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

    

italix / forms example snippets


use function Italix\Forms\form_meta;
use Italix\Rules\Rule;

$form = form_meta($users_table);          // anything implementing Italix\Contracts\TableMeta

$form->section('identity')->title($t->get('form.identity'))->order(1)->columns(2);

$form->field('email')
     ->label($t->get('form.email'))
     ->placeholder('[email protected]')
     ->rules(Rule::any serialisation

use Italix\Forms\Rendering\FormHtml;

$html = new FormHtml($form, $widget_registry);
echo $html->action('/it/admin/users/1/edit.html')->method('POST')->render();