indigophp/fieldset 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

indigophp/fieldset

Composer 安装命令:

composer require indigophp/fieldset

包简介

Custom fieldset features built around Fuel Fieldset and Validation package

README 文档

README

Latest Version Software License Build Status Code Coverage Quality Score HHVM Status Total Downloads

Custom form features built around Fuel Fieldset and Validation package.

Install

Via Composer

$ composer require indigophp/fieldset

Usage

Create your entity which you want to use in the form:

/**
 * @Form
 */
class Entity
{
    /**
     * @Form\Field('text')
     */
    protected $property;
}

Create your metadata factory:

use Indigo\Fieldset\FieldsetManager;
use Indigo\Fieldset\Metadata\Driver\Annotation;
use Metadata\MetadataFactory;

$driver = new Annotation(/* instance of Doctrine\Common\Annotations\Reader */);
$factory = new MetadataFactory($driver);
$manager = new FieldsetManager($factory, /* instance of Fuel\Fieldset\Builder\BuilderInterface */);

$form = $manager->generateForm('Entity');
$manager->populateForm($entity, $form);
$validator = $manager->generateValidation('Entity');

Testing

$ phpspec run

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please contact us at security@indigophp.com.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-29