BSD Ports

textproc/p5-Data-FormValidator 4.88 FreeBSD

Validates user input (usually from an HTML form) based

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
textproc, perl5
Package size
72.9 KiB, 191.6 KiB installed

Description

Data::FormValidator's main aim is to make the tedious coding of input validation expressible in a simple format and to let the programmer focus on more interesting tasks.

When you are coding a web application one of the most tedious though crucial tasks is to validate user's input (usually submitted by way of an HTML form). You have to check that each required fields is present and that some fields have valid data. (Does the phone input looks like a phone number? Is that a plausible email address? Is the YY state valid? etc.) For a simple form, this is not really a problem but as forms get more complex and you code more of them this task becames really boring and tedious.

Data::FormValidator lets you define profiles which declare the required fields and their format. When you are ready to validate the user's input, you tell Data::FormValidator the profile to apply to the user data and you get the valid fields, the name of the fields which are missing. An array is returned listing which fields are valid, missing, invalid and unknown in this profile.

Seamus Venasse <[email protected]>

In the other systems

SystemPortVersion
FreeBSDtextproc/p5-Data-FormValidator4.88
OpenBSDdevel/p5-Data-FormValidator4.88p0
NetBSDtextproc/p5-Data-FormValidator4.88nb9
DragonFlytextproc/p5-Data-FormValidator4.88

Install

Binary package:

pkg install p5-Data-FormValidator

From the ports tree:

cd /usr/ports/textproc/p5-Data-FormValidator/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Data-FormValidator>0:textproc/p5-Data-FormValidator

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest4.884.884.884.884.88
FreeBSD:14:quarterly4.884.88n/a4.884.88
FreeBSD:15:latest4.884.88n/a4.884.88
FreeBSD:15:quarterly4.884.88n/an/an/a
FreeBSD:16:latest4.884.88n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 8

Runtime 8

The full lists below include those, and their dependencies in turn.

Build dependencies 27
Run dependencies 27

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 14
  • %%SITE_PERL%%/Data/FormValidator.pm
  • %%SITE_PERL%%/Data/FormValidator/Constraints.pm
  • %%SITE_PERL%%/Data/FormValidator/Constraints/Dates.pm
  • %%SITE_PERL%%/Data/FormValidator/Constraints/Upload.pm
  • %%SITE_PERL%%/Data/FormValidator/ConstraintsFactory.pm
  • %%SITE_PERL%%/Data/FormValidator/Filters.pm
  • %%SITE_PERL%%/Data/FormValidator/Results.pm
  • %%PERL5_MAN3%%/Data::FormValidator.3.gz
  • %%PERL5_MAN3%%/Data::FormValidator::Constraints.3.gz
  • %%PERL5_MAN3%%/Data::FormValidator::Constraints::Dates.3.gz
  • %%PERL5_MAN3%%/Data::FormValidator::Constraints::Upload.3.gz
  • %%PERL5_MAN3%%/Data::FormValidator::ConstraintsFactory.3.gz
  • %%PERL5_MAN3%%/Data::FormValidator::Filters.3.gz
  • %%PERL5_MAN3%%/Data::FormValidator::Results.3.gz
distinfo 1
FileSizeSHA256
Data-FormValidator-4.88.tar.gz99850c1a539f91c92cbcd8a8d83597ec9a7643fcd8ccf5a94e15382c3765289170066
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.