Executable

February 3, 2026 · View on GitHub

  • Executable()

Validates if a file is an executable.

v::executable()->assert('/path/to/executable');
// Validation passes successfully

v::executable()->assert('/path/to/file');
// → "/path/to/file" must be an accessible existing executable file

Templates

Executable::TEMPLATE_STANDARD

ModeTemplate
default{{subject}} must be an accessible existing executable file
inverted{{subject}} must not be an accessible existing executable file

Template placeholders

PlaceholderDescription
subjectThe validated input or the custom validator name (if specified).

Categorization

  • File system

Changelog

VersionDescription
3.0.0Templates changed
0.7.0Created

See Also