mannydmorales / console
A utility library for interacting with the console.
v2.0.0
2024-11-18 20:46 UTC
Requires
- php: >=8.0
Requires (Dev)
- phpunit/phpunit: ^11.4
README
Description
This library provides utility functions to interact with the console. Helpfull for console applications.
Features
- Stylize outputs (Formatting includes: font color, background color, bold, hide for passwords, etc)
- Ask for user input: (Password, Prompt, Selects, Multi-Select, Confirm)
- Progress Bar
- Print formatted Usage Table
- Output to STDOUT and STDERR
- Clear Screen
- Console Size Detection
- Check OS type: isWindows, isMac, isLinux
Installation
To install the library (using composer):
composer require mannydmorales/console
- Include the composer autoloader
require __DIR__.'/vendor/autoload.php';
To install the library (if not using composer):
- Clone/Download the repository
- Include the autoload.php script in your application
require 'path/to/install/autoload.php';
Usage
Please view the examples located in the examples/ directory.
Contributing
Contributions are welcome! Please fork the repository and create a pull request with your changes.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For any questions or suggestions, please contact mannydmorales@gmail.com.