comphppuebla/easy-forms
最新稳定版本:1.0.0
Composer 安装命令:
composer require comphppuebla/easy-forms
包简介
Easy forms processing
关键字:
README 文档
README
This is a light library to process HTML forms in Web applications. Its main goal is to delegate concerns like, validation, rendering, translation, and dynamic modification/population to well-known components.
This package is intended to be used as a glue for packages that provide the following functionality.
- Rendering (Twig)
- Validation (Zend input filter)
- Special form elements like CSRF tokens (Symfony Security CSRF), and Captcha elements (Zend CAPTCHA).
All these dependencies are optional and more adapters can be added to provide the same functionality with other libraries.
The reason behind this package is that most popular PHP packages (like Symfony and Zend) require you to install several dependencies, like translation, validation, and event dispatching packages, even if you don't need to use them.
If you are already using a form component as part of its corresponding framework, you probably will not find this package very useful. This package is intended to be used when you need a simple integration and you don't need or want to install more packages than you already have.
Examples
You can find some working examples in a small Slim application in this repository.
Unit Tests
Setup the test suite using Composer:
$ composer install --dev
Run it using PHPUnit and PHPSpec:
$ php bin/phpunit --testdox && php bin/phpspec run
License
EasyForms is released under the MIT License.
Documentation
For more details, please review the full documentation.
统计信息
- 总下载量: 4.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-16