PHPackages                             ibrostudio/laravel-prompts-path-select - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ibrostudio/laravel-prompts-path-select

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ibrostudio/laravel-prompts-path-select
======================================

Laravel Prompts Path Select

1.1.0(1y ago)0541MITPHPPHP ^8.3

Since Oct 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/iBroStudio/laravel-prompts-path-select)[ Packagist](https://packagist.org/packages/ibrostudio/laravel-prompts-path-select)[ Docs](https://github.com/ibrostudio/laravel-prompts-path-select)[ RSS](/packages/ibrostudio-laravel-prompts-path-select/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (12)Versions (5)Used By (1)

Laravel Prompts Path Select
===========================

[](#laravel-prompts-path-select)

This package is a small add-on to [Laravel Prompts](https://github.com/laravel/prompts) to provide the ability to select the path to a directory or file.

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

[](#installation)

You can install the package via composer:

```
composer require ibrostudio/laravel-prompts-path-select
```

Usage
-----

[](#usage)

```
use function IBroStudio\PathSelectPrompt\pathselect;

$directory = pathselect('Select a directory');
```

### Usual Prompts options

[](#usual-prompts-options)

```
$directory = pathselect(
    label: 'Select a directory',
    hint: 'Use right and left arrows to navigate in folders',
    required: true,
);
```

### Starting root

[](#starting-root)

You can choose the folder from which the selection starts:

```
$directory = pathselect(
    label: 'Select a directory',
    root: base_path(),
);
```

### Default selected folder

[](#default-selected-folder)

You can choose the folder from which the selection starts:

```
$directory = pathselect(
    label: 'Select a directory',
    root: base_path(),
    default: base_path('vendor'),
);
```

### Target file

[](#target-file)

By default, the selector display directories. If you want, you can target a file:

```
$file = pathselect(
    label: 'Select a file',
    root: base_path(),
    target: 'file',
);
```

### Target extension

[](#target-extension)

You can also target an extension:

```
$file = pathselect(
    label: 'Select a JSON file',
    root: base_path(),
    target: '.json',
);
```

### Navigation

[](#navigation)

You navigate in directories with right and left arrows.

**You can press the first letter of a folder or file to quickly select it.**

### Prompts forms

[](#prompts-forms)

To insert a `pathselect` into a form, use the `add` method:

```
$responses = form()
    ->text('What is your name?', required: true)
    ->password('What is your password?', validate: ['password' => 'min:8'])
    ->add(function () {
            return pathselect('Select a directory');
        }, name: 'directory')
    ->confirm('Do you accept the terms?')
    ->submit();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance46

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

Every ~59 days

Total

4

Last Release

404d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a456dae716df4be38cb7d5f02ca522a02ec37eda586ab0cae0f504516b7c1ef?d=identicon)[iBroStudio](/maintainers/iBroStudio)

---

Top Contributors

[![Yann-iBroStudio](https://avatars.githubusercontent.com/u/2676572?v=4)](https://github.com/Yann-iBroStudio "Yann-iBroStudio (12 commits)")

---

Tags

laravelprompts

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ibrostudio-laravel-prompts-path-select/health.svg)

```
[![Health](https://phpackages.com/badges/ibrostudio-laravel-prompts-path-select/health.svg)](https://phpackages.com/packages/ibrostudio-laravel-prompts-path-select)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[nativephp/desktop

NativePHP for Desktop

34020.6k3](/packages/nativephp-desktop)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)

PHPackages © 2026

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