2017 © Pedro Peláez
 

library laravel-strict-validator

'Strict' validator for PHP arrays. Currently only supported in Laravel.

image

chrgriffin/laravel-strict-validator

'Strict' validator for PHP arrays. Currently only supported in Laravel.

  • Tuesday, May 15, 2018
  • by ChrGriffin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 135 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 350 % Grown

The README.md

'Strict' validator for PHP arrays. Currently only supported in Lumen/Laravel as it uses the Laravel validation implementation. Use this package to add 'strict' validation in addition to the normal Laravel validation rules., (*1)

'Strict' Rules

  1. Arrays can only contain fields under validation. Any 'extra' indexes will cause the validator to return false.
  2. to be continued..?

Installation

```$xslt composer require chrgriffin/laravel-strict-validator, (*2)


## Usage

use ChrGriffin\StrictValidator;, (*3)

$validator = new StrictValidator( $dataToValidate, [ 'foo' => 'string|required', 'bar' => 'array|required', 'bar.inner' => 'string|required' ] );, (*4)

$valid = $validator->validate(); ```, (*5)

The Versions

15/05 2018

dev-master

9999999-dev

'Strict' validator for PHP arrays. Currently only supported in Laravel.

  Sources   Download

MIT

The Requires

 

by Christian Griffin

15/05 2018

v1.0.2

1.0.2.0

'Strict' validator for PHP arrays. Currently only supported in Laravel.

  Sources   Download

MIT

The Requires

 

by Christian Griffin

15/05 2018

v1.0.1

1.0.1.0

'Strict' validator for PHP arrays. Currently only supported in Laravel.

  Sources   Download

MIT

The Requires

 

by Christian Griffin

15/05 2018

v1.0.0

1.0.0.0

'Strict' validator for PHP arrays. Currently only supported in Laravel.

  Sources   Download

MIT

The Requires

 

by Christian Griffin