<?php
use Fracto\Validation\Exceptions\ValidationException;
use Fracto\Validation\Validator;
require "vendor/autoload.php";
$rules = ['first_name' => 'required|min_length:12'];
$input = ['first_name' => '123'];
$validator = Validator::make($rules, $input);
try {
$validator->validate();
} catch (ValidationException $e) {
var_dump($e->getMessage(), $e->getErrors());
}
-
Notifications
You must be signed in to change notification settings - Fork 0
fracto-team/php-validation
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published