depage/htmlform
最新稳定版本:1.4.1
Composer 安装命令:
composer require depage/htmlform
包简介
depage-forms is PHP library for HTML form generation with focus on usability. By abstracting HTML, browser flaws (duplicate form submissions) and form validation, it provides a comfortable way to obtain reliable and validated data from users.
关键字:
README 文档
README
depage-forms is PHP library for HTML form generation with focus on usability. It is part of the upcoming version of depage-cms, but it also works as a standalone library. By abstracting HTML, browser flaws (duplicate form submissions) and form validation, it provides a comfortable way to obtain reliable and validated data from users.
Features
- validation
- server side
- client side (jQuery Tools)
- available for standard input elements
- customizable with regular expressions
- basic CSRF protection
- HTML5 form features
- attributes : placeholder, autofocus, textbox datalists, title, pattern
- input elements : boolean (checkbox), email, hidden, multiple (checkbox, select list), number, password, range, search, single (radio, select list), tel, text, textarea, url
- richtext element (wysiwyg HTML editor)
- averts form resubmission
- divide forms into ѕeparate parts
- neat return values with appropriate data types
- easy language localisation
- session timeout
- simple creditcard validation (by values)
- unit tested
Prerequisites
- PHP 5.3
- jQuery >=1.4.3 (optional, for client side validation and richtext field)
Introduction
- You can get a basic introduction at: depage-forms: html5 forms made easy (part I)
- How to do Form Validation depage-forms: validation of html5 forms (part II)
Download
Install Using Composer
Get composer at http://getcomposer.org and then just add this to your composer.json.
{
"require": {
"depage/htmlform": "*"
}
}
Now run
composer install
to install the current version of depage-htmlform into your vendor dir.
For more information
- You can fork us at: http://github.com/depage/depage-forms/
- You find the documentation at: http://docs.depage.net/depage-forms/
- For more information about depage-cms go to: http://www.depagecms.net/
- if you want to support with development More info
License (dual)
统计信息
- 总下载量: 336
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2013-09-11