2017 © Pedro Peláez
 

library windrider

Usefull form validation library

image

ozziest/windrider

Usefull form validation library

  • Wednesday, October 11, 2017
  • by ozziest
  • Repository
  • 1 Watchers
  • 3 Stars
  • 80 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 1 % Grown

The README.md

Windrider

Build Status Total Downloads Latest Stable Version Latest Unstable Version License, (*1)

Windrider is a simple and useful validation library which you can use it on your projects., (*2)

Installation

$ composer require ozziest/windrider

 Usage

try
{
    $data = ['name' => ''];
    $rules = [
        ['name', 'Name', 'required'],
        ['email', 'E-Mail', 'required|valid_email']
    ];
    Ozziest\Windrider\Windrider::runOrFail($data, $rules);
}
catch (Exception $exception)
{
    var_dump(Ozziest\Windrider\Windrider::getErrors());
}

Methods

  • run($data, $rules)
  • runOrFail($data, $rules)
  • getErrors()
  • setErrors($messages)

 Validations

  • required
  • valid_email
  • min_length[n]
  • max_length[n]
  • exact_length[n]
  • alpha
  • alpha_numeric
  • alpha_dash
  • alpha_local (Turkish characters support)
  • sentence (Turkish characters support)
  • numeric
  • integer
  • is_natural
  • is_natural_no_zero
  • less_than[n]
  • greater_than[n]

Exception

ValidationException, (*3)

License

MIT, (*4)

The Versions

11/10 2017

dev-master

9999999-dev http://github.com/ozziest/windrider

Usefull form validation library

  Sources   Download

MIT

The Development Requires

by Özgür Adem Işıklı

php form validation independent

11/10 2017

3.0.0

3.0.0.0 http://github.com/ozziest/windrider

Usefull form validation library

  Sources   Download

MIT

The Development Requires

by Özgür Adem Işıklı

php form validation independent

27/06 2016

2.2.2

2.2.2.0 http://github.com/ozziest/windrider

Usefull form validation library

  Sources   Download

MIT

The Development Requires

by Özgür Adem Işıklı

php form validation independent

22/06 2016

2.2.1

2.2.1.0 http://github.com/ozziest/windrider

Usefull form validation library

  Sources   Download

MIT

The Development Requires

by Özgür Adem Işıklı

php form validation independent

22/06 2016

2.2.0

2.2.0.0 http://github.com/ozziest/windrider

Usefull form validation library

  Sources   Download

MIT

The Development Requires

by Özgür Adem Işıklı

php form validation independent

22/06 2016

2.1.0

2.1.0.0 http://github.com/ozziest/windrider

Usefull form validation library

  Sources   Download

MIT

The Development Requires

by Özgür Adem Işıklı

php form validation independent

18/06 2016

2.0.2

2.0.2.0 http://github.com/ozziest/windrider

Usefull form validation library

  Sources   Download

MIT

The Development Requires

by Özgür Adem Işıklı

php form validation independent

18/03 2016

2.0.1

2.0.1.0 http://github.com/ozziest/windrider

Usefull form validation library

  Sources   Download

MIT

The Development Requires

by Özgür Adem Işıklı

php form validation independent

03/01 2016

1.0.0

1.0.0.0 http://github.com/ozziest/windrider

Usefull form validation library

  Sources   Download

MIT

The Development Requires

by Özgür Adem Işıklı

php form validation undependent