indigophp/fieldset
Composer 安装命令:
composer require indigophp/fieldset
包简介
Custom fieldset features built around Fuel Fieldset and Validation package
关键字:
README 文档
README
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
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-29