php-tool-kit / text-ui
A simple and fast way to take user input and display output in text mode using PHP.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:HTML
Requires
- php: ^8.3
- seld/cli-prompt: ^1.0
Requires (Dev)
- phpmd/phpmd: ^2.15
- phpstan/phpstan: ^1.12
- squizlabs/php_codesniffer: *
This package is auto-updated.
Last update: 2025-03-12 12:31:34 UTC
README
A simple and fast way to take user input and display output in text mode using PHP.
Intro
Text UI is a development library that provides classes for text-based input and output.
It has two main categories of classes: TextUI\Input
for user input, and
TextUI\Output
for displaying output to the user.
Usage is quite simple:
$widget = new new TextUI\Input\TextEntry('Enter de text: '); echo "You entered '{$widget->read()}'".PHP_EOL;
Installation
The recommended installation method is via Composer:
composer require php-tool-kit/text-ui
Examples
Look at the examples
directory for basic usage examples.
Documentation
See Documentation page.
Licence
Library licensed under the MIT license (in the LICENCE file).
Team
The team soy yo, Everton da Rosa.
Contributing
Contributions are always welcome.
To do this, fork, create a branch, code, send a pool request.
Before submitting your contribution, preferably use PHPStan, PHPMD and PHPCS.
composer run phpstan composer run phpmd composer run phpcbf composer run phpcs
It is also important that you create an issue explaining the purpose of the contribution and summarizing what you are doing, referencing this in the pool request.