承接 nitroxy/php-forms 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nitroxy/php-forms

最新稳定版本:1.4.3

Composer 安装命令:

composer require nitroxy/php-forms

包简介

Form builder

README 文档

README

Build Status Coverage Status

Installation

composer require nitroxy/php-forms

Features

  • Create HTML5 forms easily.
  • Layout engine (supports tables, divs and bootstrap out-of-the-box).
  • Bind forms to PHP objects for reading/data and presenting validation errors.
  • CSRF protection.
  • Supports REST-verbs such as PATCH, PUT, DELETE or even custom if desired.

Example

Form::from_object($user, function($f){
  $f->text_field('name', 'Name');
  $f->text_field('age', 'Age', ['type' => 'number', 'min' => 1]);
  $f->select(FormSelect::from_array($f, 'role', array('', 'Manager', 'Frobnicator', 'Developer'), 'Role'));
  $f->textarea('description', 'Description');
}, ['action' => $user->url, 'method' => 'patch']);

See documentation for examples and usage.

统计信息

  • 总下载量: 109
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-04-13