Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/tarsisio-xavier/sprompt

v0.2.0 2024-09-10 17:22 UTC

This package is auto-updated.

Last update: 2026-01-10 20:14:44 UTC


README

It's a small class to be used as a facade for accessing the Laravel Prompts' functions so you don't need to import every function in your PHP file to use them.

Installation

Install it using composer like:

composer require tarsisio-xavier/sprompt

Usage

<?php

use TarsisioXavier\Sprompt\Sprompt;

require __DIR__ . '/../vendor/autoload.php';

$name = Sprompt::text('What is your name?');

// Input the name... e.g. Maeve Millay

Sprompt::info("You said that your name is {$name}");

// Output: You said that your name is Maeve Millay