PHPackages                             alio/cli-file-tree - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. alio/cli-file-tree

ActiveProject[CLI &amp; Console](/categories/cli)

alio/cli-file-tree
==================

CLI utility for file selection with a menu interface using PHPSchool/CliMenu.

v1.0.0(6y ago)09MITPHPCI failing

Since Oct 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/aliozinan/cli-file-tree)[ Packagist](https://packagist.org/packages/alio/cli-file-tree)[ Docs](https://github.com/aliozinan/cli-file-tree)[ RSS](/packages/alio-cli-file-tree/feed)WikiDiscussions stable Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Laravel CLI File Tree Menu (w/ navigation)
==========================================

[](#laravel-cli-file-tree-menu-w-navigation)

[![Build Status](https://camo.githubusercontent.com/30dd13043efb7d3089dfd702e14da03e1f37ba26191fda8c8e3edc943262672d/68747470733a2f2f7472617669732d63692e6f72672f616c696f7a696e616e2f636c692d66696c652d747265652e7376673f6272616e63683d76312e302e30)](https://travis-ci.org/aliozinan/cli-file-tree)[![Total Downloads](https://camo.githubusercontent.com/065f96cdab0bfb45b29564ffb4a3aaf132cd625240b4ab1c366bb2d42645136e/68747470733a2f2f706f7365722e707567782e6f72672f616c696f2f636c692d66696c652d747265652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/alio/cli-file-tree)[![contributions welcome](https://camo.githubusercontent.com/9e93e892d0685e1bf7a1d0bd7c8410d6ecf2086a0a7b48dd58a6b96fa556ea2a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/aliozinan/cli-file-tree/issues)[![HitCount](https://camo.githubusercontent.com/d2a673959efe48555f4f320b06f479952d901b8b2fe9f514aa7117e3f5faec35/687474703a2f2f686974732e6477796c2e696f2f616c696f7a696e616e2f636c692d66696c652d747265652e737667)](http://hits.dwyl.io/aliozinan/cli-file-tree)[![License](https://camo.githubusercontent.com/ab2704fd2fc262bde772ea655a4b61d3f916dc3cf8181882e20d3a6a8d48dc9e/68747470733a2f2f706f7365722e707567782e6f72672f616c696f2f636c692d66696c652d747265652f6c6963656e7365)](https://github.com/aliozinan/cli-file-tree/blob/master/LICENSE.md)

Laravel CLI utility for file selection with a menu interface using [PHP School / CliMenu](https://github.com/php-school/cli-menu)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require alio/cli-file-tree
```

Usage
-----

[](#usage)

This Laravel CLI utility basically allows you to select a folder or a file on your system using a menu interface with navigation feature and return the selected file's path.

You can also filter the files by (multiple) file extensions using the --filter option.

```
php artisan clifiletree [--filter=?] [--fg=?] [--bg=?]

--filter : (optional) display only folders or certain file types by extensions. Use 'folder' to display folders only. Supports multiple file extension filters by seperating with comma (Ex: csv,xls)
  --fg : (optional) foreground color (def. green)
  --bg : (optional) background color (def. black)

(possible color values : black, red, green, yellow, blue, magenta, cyan, white)
```

Below is an example to use the library in your project (the best use case is calling it from your custom command)

```
use Illuminate\Support\Facades\Artisan;
use Symfony\Component\Console\Output\BufferedOutput;

...

$output = new BufferedOutput;
Artisan::call('clifiletree', ['--filter' => 'csv'], $output);

$file = $output->fetch();

// do whatever you want with the $file

...
```

Screenshot
----------

[](#screenshot)

[![](https://raw.githubusercontent.com/aliozinan/cli-file-tree/stable/cli-file-tree-screenshot.jpg)](https://raw.githubusercontent.com/aliozinan/cli-file-tree/stable/cli-file-tree-screenshot.jpg)

### Testing

[](#testing)

```
composer test
```

Additional Notes
----------------

[](#additional-notes)

This package requires PHP posix extension enabled, it may not work in Windows Wamp/Xampp environments. Compatibility with the new Windows Terminal is being investigated.

### Changelog

[](#changelog)

10/25/2019 - v1.0.0 released.

### Issues

[](#issues)

If you discover any problems please report in the issues section.

Contributors
------------

[](#contributors)

- [Ali Ozinan](https://github.com/aliozinan)

Contributions and PRs are welcome!

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2392d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2139a369b21633c6003f4283e379e42fd46a8f516d58c6dcf60ce0b74ab654f1?d=identicon)[alio](/maintainers/alio)

---

Top Contributors

[![aliozinan](https://avatars.githubusercontent.com/u/3763540?v=4)](https://github.com/aliozinan "aliozinan (9 commits)")

---

Tags

phpclilaravelfiletreemenunavigation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alio-cli-file-tree/health.svg)

```
[![Health](https://phpackages.com/badges/alio-cli-file-tree/health.svg)](https://phpackages.com/packages/alio-cli-file-tree)
```

###  Alternatives

[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16255.4k7](/packages/nunomaduro-laravel-console-dusk)[rahul900day/laravel-console-spinner

Laravel Console Spinner is a spinner output for Laravel command line.

76125.4k1](/packages/rahul900day-laravel-console-spinner)[spresnac/laravel-create-user-cli

Create a user-entry from cli with artisan

2354.8k1](/packages/spresnac-laravel-create-user-cli)[timwassenburg/laravel-repository-generator

Generate Laravel repositories

2116.9k1](/packages/timwassenburg-laravel-repository-generator)[renoki-co/php-helm

PHP Helm Processor is a process wrapper for Kubernetes' Helm v3 CLI. You can run programmatically Helm v3 commands, directly from PHP, with a simple syntax.

1310.5k](/packages/renoki-co-php-helm)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
