NAME

SyForm - SyForm - a role driven form management

VERSION

version 0.003

SYNOPSIS

use SyForm;

my $form = SyForm->create([
  'name' => {
    isa => 'Str',
    required => 1,
    label => 'Your name',
  },
  'age' => {
    isa => 'Int',
    label => 'Your age',
  },
]);

$form->does('SyForm'); # its all roles
$form->field('name')->does('SyForm::Field');
$form->field('name')->does('SyForm::Field::Label');
$form->field('name')->does('SyForm::Field::Verify');

if (my $results = $form->process( name => 'YoCoolCopKiller', age => 13 )) {
  my $vars = $results->as_hashref;
}

DESCRIPTION

SyForm is developed for SyContent.

SUPPORT

IRC

Join #sycontent on irc.perl.org. Highlight Getty for fast reaction :).

Repository

http://github.com/SyContent/SyForm
Pull request and additional contributors are welcome

Issue Tracker

http://github.com/SyContent/SyForm/issues

AUTHOR

Torsten Raudssus <torsten@raudss.us>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.