2017 © Pedro Peláez
 

library form-builder

The Form Builder Package

image

zouxiang0639/form-builder

The Form Builder Package

  • Wednesday, August 16, 2017
  • by zouxiang0639
  • Repository
  • 3 Watchers
  • 10 Stars
  • 123 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 3 Versions
  • 6 % Grown

The README.md

form-builder

一个表单生成器,不继承任何一个扩展包; thinkphp5 form 表单生成器, (*1)

扩展安装

composer require zouxiang0639/form-builder

案例

案例一, (*2)

   $form = \think\form\Form::form();
   $form = form();
   echo $form->open(['method'=>'POST','action'=>'http://localhost']).'<br>';
   echo $form->select('select',  ['a'=>['a','b','c'],'b','c'], 1).'<br>';
   echo $form->text('text','text',['id'=>'text']).'<br>';
   echo $form->submit('submit').'<br>';
   echo $form->close();

函数查询

 /**
 * @method mixed token() public token
 * @method mixed close() public 关闭一个HTML表单
 * @method mixed setModel(mixed $model) public 设置HTML表单模型
 * @method mixed open(array $options) public 打开一个新的HTML表单
 * @method mixed button(string $value = null, array $options = array()) public 表单button
 * @method mixed file(string $name, array $options = array()) public 表单file
 * @method mixed model(mixed $model ,array $options = array()) public 打开一个新的HTML表单模型
 * @method mixed submit(string $value = null, array $options = array()) public 表单submit提交
 * @method mixed text(string $name, string $value = null, array $options = []) public 表单text
 * @method mixed label(string $name, string $value = null, array $options = []) public label标签
 * @method mixed url(string $name, string $value = null, array $options = array()) public 表单url
 * @method mixed email(string $name, string $value = null, array $options = array()) public 表单email
 * @method mixed reset(string $name, string $value = null, array $options = array()) public 表单reset
 * @method mixed hidden(string $name, string $value = null, array $options = array()) public 表单hidden
 * @method mixed image(string $url, string $name = null, array $attributes = array()) public 表单image提交
 * @method mixed textarea(string $name, string $value = null, array $options = array()) public 表单textarea
 * @method mixed password(string $name, string $value = null, array $options = array()) public 表单password
 * @method mixed checkbox(string $name, string $value = 1, string $checked = null, array $options = array()) public 表单checkbox
 * @method mixed radio(string $name, string $value = null, string $checked = null, array $options = array())) public 表单radio
 * @method mixed select(string $name, array $list = array(), string $selected = null, array $options = array()) public 表单textarea
 * @method mixed selectYear(string $name ,string $begin,string $end, string $selected = null ,array $options = array()) public select年
 * @method mixed selectMonth(string $name ,string $selected = null ,array $options = array() ,string $format = '%m') public select月
 */

The Versions

16/08 2017

dev-master

9999999-dev

The Form Builder Package

  Sources   Download

Apache-2.0

The Requires

 

by zouxiang

16/08 2017

v1.0.1

1.0.1.0

The Form Builder Package

  Sources   Download

Apache-2.0

The Requires

 

by zouxiang

04/02 2017

v1.0

1.0.0.0

The Form Builder Package

  Sources   Download

Apache-2.0

The Requires

 

by zouxiang