rosamarsky/slim-validation

Simple validation for Slim framework

v0.2.1 2019-01-22 16:22 UTC

This package is auto-updated.

Last update: 2024-10-23 05:24:33 UTC


README

Validation library for Slim Framework based on Respect/Validation.

Installation

composer require rosamarsky/slim-validation

Usage

$app->post('/users', function(Request $request, Response $response) use ($container) {
    // ...
})->add(validator(
    v::key('email' , v::notEmpty()->email()),
    v::key('password', v::notEmpty()->length(8, null))
));