2017 © Pedro Peláez
 

library formality

Form fields type guesser. Tries to detect the field type based on the name and the given config.

image

mascame/formality

Form fields type guesser. Tries to detect the field type based on the name and the given config.

  • Sunday, October 1, 2017
  • by marcmascarell
  • Repository
  • 1 Watchers
  • 0 Stars
  • 52 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Formality

Packagist Travis license, (*1)

Form fields type guesser. Tries to detect the field type based on the name and the given config., (*2)

Installation

composer require mascame/formality, (*3)

Usage


$types = [ 'password' => [], // will match the keyword `password` 'text' => [ 'autodetect' => [ 'title', ] ], 'textarea' => [ 'autodetect' => [ 'body', ], ], 'datetime' => [ 'regex' => [ '/_at$/' ], ], ]; $parser = new Mascame\Formality\Parser\Parser($types); print $parser->parse('title'); // text print $parser->parse('body'); // textarea print $parser->parse('created_at'); // datetime print $parser->parse('password'); // password

Run Tests

vendor/bin/codecept run unit, (*4)

The Versions

01/10 2017

dev-master

9999999-dev https://github.com/marcmascarell/formality

Form fields type guesser. Tries to detect the field type based on the name and the given config.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Mascarell

form generation field detection

01/10 2017

1.0.0

1.0.0.0 https://github.com/marcmascarell/formality

Form fields type guesser. Tries to detect the field type based on the name and the given config.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Mascarell

field detection

12/11 2016

0.0.6-beta

0.0.6.0-beta https://github.com/marcmascarell/formality

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Mascarell

form generation field detection

20/08 2016

0.0.5-beta

0.0.5.0-beta https://github.com/marcmascarell/formality

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Mascarell

form generation field detection

17/08 2016

0.0.4

0.0.4.0 https://github.com/marcmascarell/formality

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Mascarell

form generation field detection

14/08 2016

0.0.3

0.0.3.0 https://github.com/marcmascarell/formality

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Mascarell

form generation field detection

14/08 2016

0.0.2

0.0.2.0 https://github.com/marcmascarell/formality

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Mascarell

form generation field detection

06/04 2016

0.0.1

0.0.1.0 https://github.com/marcmascarell/formality

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marc Mascarell

form generation field detection