open-southeners / laravel-console-file-menu
Laravel Console Menu for files and directories
Fund package maintenance!
open-southeners
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/open-southeners/laravel-console-file-menu
Requires
- php: ^8.1
- illuminate/console: ^11.0 || ^12.0
- illuminate/support: ^11.0 || ^12.0
- nunomaduro/laravel-console-menu: ^3.6
- symfony/finder: ^7.0
Requires (Dev)
- larastan/larastan: ^3.0
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2025-09-18 11:07:23 UTC
README
Like NunoMaduro's console menu package but for files.
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
License
This package is open-sourced software licensed under the MIT license.