src/Oito/Micro/Validation.php
public function validate(array $data, array $rules) {
        $this->data = $data;

        foreach ($data as $key => $value) {
            if (array_key_exists($key, $rules)) {
                $this->rules($key, $value, $rules[$key]);
            }
        }

        return count($this->errors) === 0;
    }
public function validate(array $data, array $rules) {
        $this->data = $data;

        foreach ($data as $key => $value) {
            if (array_key_exists($key, $rules)) {
                $this->rules($key, $value, $rules[$key]);
            }
        }

        return count($this->errors) === 0;
    }
Validate data
@param array $data Data to validate
@param array $rules List of rules for each field
@return boolean