open-southeners / laravel-console-file-menu
Laravel Console Menu for files and directories
Fund package maintenance!
open-southeners
1.0.0
2024-03-18 01:35 UTC
Requires
- php: ^8.1
- illuminate/console: ^10.0 || ^11.0
- illuminate/support: ^10.0 || ^11.0
- nunomaduro/laravel-console-menu: ^3.5.0
- symfony/finder: ^6.2 || ^7.0
Requires (Dev)
- larastan/larastan: ^2.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^10.0
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.