oito/php-micro-plugin-respect-validation

Respect Validation plugin for Oito PHP microframework

v1.0.0 2014-03-01 19:36 UTC

README

Uses the libraries

About

This plugin enables you to use the Respect Validation library to filter and validate data.

Usage

<?php

$app = new \Oito\Micro\Application();

// the plugin will be available as: "validation"
$app->addPlugin(new \Oito\Micro\Plugin\RespectValidation());

$app->validation->string()->validate('...');