https://github.com/eghojansu/php-validation
PHP Validation
https://github.com/eghojansu/php-validation
Last synced: 2 months ago
JSON representation
PHP Validation
- Host: GitHub
- URL: https://github.com/eghojansu/php-validation
- Owner: eghojansu
- License: mit
- Created: 2021-12-30T08:56:55.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-14T04:31:49.000Z (about 3 years ago)
- Last Synced: 2025-02-09T12:43:09.239Z (4 months ago)
- Language: PHP
- Size: 317 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Validation
PHP Validation.
## Usage
```php
'foo',
'password' => 'bar',
);
$rules = array(
'username' => 'trim|min:5',
'password' => 'trim|min:5',
);
// any validation error will throw Ekok\Validation\ValidationException
$result = $validator->validate($rules, $data);// $result['username'] is ok
// $result['password'] is ok
```