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

This package is auto-updated.

Last update: 2025-04-10 18:41:38 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