2017 © Pedro PelΓ‘ez
 

library form-validator-lite

image

iwai/form-validator-lite

  • Thursday, June 16, 2016
  • by iwai
  • Repository
  • 1 Watchers
  • 0 Stars
  • 65 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 400 % Grown

The README.md

Iwai\FormValidatorLite

Install

{
    "require": {
        "iwai/form-validator-lite": "*"
    }
}

Usage

use Iwai\FormValidatorLite;

$validator = new Iwai\FormValidatorLite(array(
    'user_name' => array(
      'StringLength' => array(
        'require' => true,
        'max' => 50,
        'messageRequire' => "γŠεε‰γ‚’ε…₯εŠ›γ—γ¦γγ γ•γ„",
        'messageMaximum' => "γŠεε‰γ―50ζ–‡ε­—δ»₯内でε…₯εŠ›γ—γ¦γγ γ•γ„"
      )
    ),

    'user_email' => array(
      'StringLength' => array(
        'require' => true,
        'min' => 3,
        'max' => 100,
        'messageRequire' => "パールをドレスをε…₯εŠ›γ—γ¦γγ γ•γ„",
        'messageMinimum' => "パールをドレスは3ζ–‡ε­—δ»₯上でε…₯εŠ›γ—γ¦γγ γ•γ„",
        'messageMaximum' => "パールをドレスは100ζ–‡ε­—δ»₯内でε…₯εŠ›γ—γ¦γγ γ•γ„"
      ),
      'Email' => array(
        'require' => true,
        'message' => "正しいパールをドレスをε…₯εŠ›γ—γ¦γγ γ•γ„"
      ),
    )
));

if ($validator->validate($_POST)) {
  # Invalid process
  $error_messages = $validator->getMessage();
}

The Versions

16/06 2016

dev-master

9999999-dev

  Sources   Download

MIT

16/06 2016

1.5

1.5.0.0

  Sources   Download

MIT

13/06 2016

1.4

1.4.0.0

  Sources   Download

MIT

13/06 2016

1.2

1.2.0.0

  Sources   Download

MIT

10/06 2016

1.1

1.1.0.0

  Sources   Download

MIT

09/06 2016

1.0

1.0.0.0

  Sources   Download

MIT