Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lablnet/php-validation

Performs Validation
https://github.com/lablnet/php-validation

class composer free package php validation

Last synced: about 2 hours ago
JSON representation

Performs Validation

Awesome Lists containing this project

README

        

# PHP validation

## Requirement

- PHP
- Composer

## install
run this command
``` composer require lablnet/validation ```

## usage

```php
['required' => true, ],
'email' => ['required' => true],
'password' => ['required' => true, ],
];
$validation = new \Lablnet\Validation($_POST,$rules,'input');
if($validation->fail()){
$errors = $validation->error()->get();

foreach ($errors as $error) {
foreach ($error as $value) {
echo $value."
";
}
}
} else {
//TO-Do create the user
}
```