Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ php artisan vendor:publish --tag=laranail::console-config
php artisan vendor:publish --tag=laranail::console-lang
```

## Quick start
## Quick start guide and usage

### Getting started

Nothing to configure: `ConsoleServiceProvider` registers itself through package discovery,
together with the `Console` and `Prompter` facades and the `prompter()` helper. The config and
language publishes above are only for customising them.

### Usage

```php
use Simtabi\Laranail\Console\Facades\Console;
Expand All @@ -44,6 +52,14 @@ final class ReleaseSummaryCommand extends Command
}
```

Progress and a prompt:

```php
Console::spinner('Compiling…')->run(fn () => compile());

$name = Console::prompter()->text('Your name', required: true)->getResult();
```

The full walkthrough is in [Getting started](docs/getting-started.md); everything else is in the [documentation index](#documentation).

## Documentation
Expand Down
Loading