1. Go to this page and download the library: Download surgiie/laravel-prompts-vim library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
surgiie / laravel-prompts-vim example snippets
use function Surgiie\PromptsVim\text;
use function Surgiie\PromptsVim\password;
use function Surgiie\PromptsVim\textarea;
$name = text(
label: 'Name',
placeholder: 'John Doe',
default: 'hello world',
hint: 'Press Escape to enter normal mode',
);
$pass = password(
label: 'Password',
hint: 'Press Escape to enter normal mode',
);
$bio = textarea(
label: 'Bio',
placeholder: 'Tell us about yourself...',
rows: 6,
);
use Surgiie\PromptsVim\TextPrompt;
use Surgiie\PromptsVim\TextareaPrompt;
use Surgiie\PromptsVim\PasswordPrompt;
$prompt = new TextPrompt(label: 'Name');
$name = $prompt->prompt();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.