mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 15:25:45 +01:00
The PSR-7 has two interfaces that allow us to validate them as files. This commit will allow some rules to validate those interfaces. Co-authored-by: Henrique Moody <henriquemoody@gmail.com> Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
579 B
579 B
Readable
Readable()
Validates if the given data is a file exists and is readable.
v::readable()->validate('file.txt'); // true
Categorization
- File system
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Add PSR-7 support |
| 0.5.0 | Created |
See also: