enjoys / forms
forms 5.x 开发版
5.10.1
2024-06-02 20:02 UTC
Requires
- php: ^8.0
- ext-json: *
- enjoys/functions: ^2.1
- enjoys/session: ^2.0
- gabrielelana/byte-units: 0.5.0
- httpsoft/http-server-request: ^1.0
- webmozart/assert: ^1.10
Requires (Dev)
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
- symfony/var-dumper: ^v6.0
- vimeo/psalm: ^5.0
- dev-master
- 6.x-dev
- 5.10.1
- 5.10.0
- 5.9.3
- 5.9.2
- 5.9.1
- 5.9.0
- 5.8.0
- 5.7.0
- 5.6.1
- 5.6.0
- 5.5.5
- 5.5.4
- 5.5.3
- 5.5.2
- 5.5.1
- 5.5.0
- 5.5.0-rc4
- 5.5.0-rc3
- 5.5.0-rc2
- 5.5.0-rc1
- 5.4.x-dev
- 5.4.2
- 5.4.1
- 5.4.1-rc3
- 5.4.1-rc2
- 5.4.1-rc1
- 5.4.1-beta3
- 5.4.1-beta2
- 5.4.1-beta
- 5.4.0
- 5.3.0
- 5.2.5
- 5.2.4
- 5.2.3
- 5.2.2
- 5.2.1
- 5.2.0
- 5.1.2
- 5.1.1
- 5.1.0
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 3.x-dev
- 3.7.0
- 3.6.6
- 3.6.5
- 3.6.4
- 3.6.3
- 3.6.2
- 3.6.1
- 3.6.0
- 3.5.1
- 3.5.0
- 3.4.5
- 3.4.4
- 3.4.3.1
- 3.4.3
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.4
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.2
- 3.0.1
- 3.0.0
- 2.6.0
- 2.5.1
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- dev-added_elements_after_and_before
This package is auto-updated.
Last update: 2024-09-02 20:31:03 UTC
README
初始化表单
use Enjoys\Forms\Form; $form = new Form(); //or $form = new Form('get', 'action.php');
添加的元素
use Enjoys\Forms\Form; use Enjoys\Forms\Elements; $form = new Form(); $form->text('name', 'label'); //or $textElement = new Elements\Text('name', 'label'); $form->addElement($textElement);
元素列表
- 按钮
- 验证码(需要实现 CaptchaInterface 接口)
- 复选框
- 颜色
- 数据列表
- 日期
- 日期时间
- 本地日期时间
- 电子邮件
- 文件
- 分组
- 标题
- 隐藏
- HTML
- 图片
- 月份
- 数字
- 密码
- 单选按钮
- 范围
- 重置
- 搜索
- 选择
- 提交
- 电话
- 文本
- 文本区域
- 时间
- 网址
- 周
运行内置服务器以查看示例
port=$(shuf -i 2048-65000 -n 1); php -S localhost:"${port}" -t ./example .route