2017 © Pedro Peláez
 

library tinyvalidator

Tiny PHP validator.

image

tinylara/tinyvalidator

Tiny PHP validator.

  • Wednesday, March 18, 2015
  • by JohnLui
  • Repository
  • 1 Watchers
  • 6 Stars
  • 199 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

TinyLara\TinyValidator

Latest Stable Version Total Downloads License, (*1)

TinyValidator is a tiny validation package. Read the documentation., (*2)

Install

If you have Composer, just include TinyValidator as a project dependency in your composer.json. If you don't just install it by downloading the .ZIP file and extracting it to your project directory., (*3)

require: {
    "tinylara/tinyvalidator": "*"
}

Examples

$data = ['title'=>'你', 'email'=>'1@baiducom'];
$rules = [
  'title' => 'required|min:3|max:255',
  'email' => 'required|email',
];

$validator = new \TinyLara\TinyValidator\TinyValidator($data, $rules);

if ( !$validator->success ) {
  foreach ($validator->errors as $error) {
    echo $error.'<br>';
  }
}

License

The TinyValidator is open-sourced software licensed under the MIT license., (*4)

The Versions

18/03 2015

dev-master

9999999-dev

Tiny PHP validator.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by John Lui

18/03 2015

v1.2

1.2.0.0

Tiny PHP validator.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by John Lui

16/03 2015

v1.1

1.1.0.0

Tiny PHP validator.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by John Lui

16/03 2015

v1.0

1.0.0.0

Tiny PHP validator.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by John Lui