Looking to hire Laravel developers? Try LaraJobs

laravel-console-file-menu maintained by open-southeners

Description
Laravel Console Menu for files and directories
Author
Last update
2025/12/15 08:07 (dev-dependabot/github_actions/actions/cache-5)
License
Links
Downloads
4

Comments
comments powered by Disqus

Laravel Console File Menu required php version codecov Edit on VSCode online

Like NunoMaduro's console menu package but for files.

screenshot

Getting started

composer require open-southeners/laravel-console-file-menu

Start using it by copying code from below:

use NunoMaduro\LaravelConsoleMenu\Menu;

// In between your command's code:
$result = $this->fileMenu('/base/path')
    // Customise the underlying menu here: https://github.com/php-school/cli-menu?tab=readme-ov-file#appearance
    ->customise(fn (Menu $menu) => $menu->setForegroundColour('green')
        ->setBackgroundColour('black')
    )
    ->onlyDirectories(false)
    ->hideFileExtensions(false)
    ->respectIgnored(true)
    ->open();

// $result will contain the full file/directory selected path or null otherwise

Partners

skore logo

License

This package is open-sourced software licensed under the MIT license.