2017 © Pedro Peláez
 

library validation

A validation class

image

vakata/validation

A validation class

  • Monday, December 4, 2017
  • by vakata
  • Repository
  • 1 Watchers
  • 1 Stars
  • 598 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 13 % Grown

The README.md

validation

Latest Version on Packagist ![Software License][ico-license] Build Status Code Climate ![Tests Coverage][ico-cc-coverage], (*1)

An extended implementation of the routing class, dealing with an HTTP abstraction and middleware., (*2)

Install

Via Composer, (*3)

``` bash $ composer require vakata/validation, (*4)


## Usage ``` php $v = new \vakata\validation\Validator(); $v ->required('name', 'requiredN')->alpha(null, "alphaN")->notEmpty("empty") ->required('family', 'requiredF')->alpha(null, "alphaF") ->required('age', 'requiredA')->numeric("numericA") ->optional("newsletter")->numeric("numericN") ->optional("children.*.name")->alpha(null, "alphaC") ->optional("children.*.age")->numeric(null, "numericC"); $errors = $v->run($_POST); // inspect the array - if empty - the data is valid

Read more in the API docs, (*5)

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING for details., (*7)

Security

If you discover any security related issues, please email github@vakata.com instead of using the issue tracker., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

04/12 2017

dev-master

9999999-dev https://github.com/vakata/validation

A validation class

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

router vakata

04/12 2017

1.5.0

1.5.0.0 https://github.com/vakata/validation

A validation class

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

router vakata

18/10 2017

1.4.0

1.4.0.0 https://github.com/vakata/validation

A validation class

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

router vakata

25/09 2017

1.3.0

1.3.0.0 https://github.com/vakata/validation

A validation class

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

router vakata

25/06 2017

1.2.0

1.2.0.0 https://github.com/vakata/validation

A validation class

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

router vakata

29/05 2017

1.1.0

1.1.0.0 https://github.com/vakata/validation

A validation class

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

router vakata

28/10 2016

1.0.5

1.0.5.0 https://github.com/vakata/validation

A validation class

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

router vakata

28/10 2016

1.0.4

1.0.4.0 https://github.com/vakata/validation

A validation class

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

router vakata

27/10 2016

1.0.3

1.0.3.0 https://github.com/vakata/validation

A validation class

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

router vakata

12/05 2016

1.0.2

1.0.2.0 https://github.com/vakata/validation

A validation class

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

router vakata

28/04 2016

1.0.1

1.0.1.0 https://github.com/vakata/validation

A validation class

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

router vakata

25/04 2016

1.0.0

1.0.0.0 https://github.com/vakata/validation

A validation class

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

router vakata