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

This package is auto-updated.

Last update: 2024-09-10 17:25:04 UTC


README

这是一个小型类,用作Laravel Prompts功能的门面,这样你就不需要在每个PHP文件中导入每个函数来使用它们。

安装

使用composer安装它,例如:

composer require tarsisio-xavier/sprompt

用法

<?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