Skip to main content

FilePicker

Browse the filesystem for a single path. Arrows move, enters the highlighted directory and returns to its parent (never above the start directory), typing filters the current directory and Tab reveals hidden entries; Enter selects the highlighted entry. Restrict what may be chosen with filesOnly() or directoriesOnly(), limit files with extensions(), and choose where browsing starts with start(). It collects the chosen path.

$p->filePicker('config', 'Config file')->start(getcwd())->filesOnly()->extensions(['yml', 'yaml']);
ANSINo ANSI
UnicodeFile picker: Unicode + ANSIFile picker: Unicode + No ANSI
ASCIIFile picker: ASCII + ANSIFile picker: ASCII + No ANSI