arrack/form-lib

quickly to generate html form object

1.1 2014-05-31 16:56 UTC

This package is not auto-updated.

Last update: 2024-04-13 13:44:23 UTC


README

generate html form object

Example

<?php
// input text box
echo FormLib::text('name', 'input your name');
echo FormLib::text('name', 'input your name', ['readonly' => true, 'size' => 5]);

// select
$options = [
    'A1' => 'AAA',
    'B1' => 'BBB'
];
echo FormLib::select('category', 'B1', $options);