定制 open-southeners/laravel-console-file-menu 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

open-southeners/laravel-console-file-menu

最新稳定版本:1.1.0

Composer 安装命令:

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

包简介

Laravel Console Menu for files and directories

README 文档

README

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.

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-18