EvolutionSDK/EvolutionSDK — Issue #4: Create Validator Bundle
Author: dboskovic
Created: 2011-12-15 02:24:27+00:00
State: open
Labels: Feature

This bundle should handle all input validation. See this example.

```php
password
->minLength(10)
->hasSymbols()
->hasBothCases()
->maxLength(20);

// get the cleaned / validated values
$data->clean(); // returns all clean values
$data->raw(); // returns the original raw value
$data->password->clean(); // returns the specific values
$data->password->raw(); // returns the original raw value

// if we haven't passed the above tests. Forget about life and push the messages to the message delivery bundle.
$data->hasErrors($level); // returns boolean whether there are any error messages
$data->pushMessages(); // pushes any messages to the output queue in the messages bundle
```