Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 86 | All time: 10,018 This week: 560 |
Version | License | PHP version | Categories | |||
hydrogen-console 1.0 | Custom (specified... | 7 | Console, PHP 7 |
Description | Author | |
This package can process the shell console input and output. |
CLI library to work with inputs/outputs from/to the gnu/linux terminal .
MIT
composer require dilawsky/hydrogen-console dev-master
<?php
require "vendor/autoload.php";
use Console\Input\Classes\Input as Input;
use Console\Output\Classes\Output as Output;
$Input = new Input;
$Output = new Output;
$Input->process($argv);
$Input->ask("Would you like a tea ?", function($answer) use ($Output) {
if($answer === "yes") {
$Output->write("preparing the tea ...","green");
}
});
?>
walidlaggoune159@gmail.com
Files (24) | / | Console |
File | Role | Description | ||
---|---|---|---|---|
Exceptions (1 file) | ||||
Input (4 directories) | ||||
Output (3 directories) |
Files (24) | / | Console | / | Input |
File | Role | Description | ||
---|---|---|---|---|
Classes (1 file) | ||||
Commands (1 file) | ||||
Helpers (1 file) | ||||
Interfaces (1 file) |
Files (24) | / | Console | / | Input | / | Commands |
File | Role | Description |
---|---|---|
ConsoleCommands.php | Class | Class source |
Files (24) | / | Console | / | Input | / | Interfaces |
File | Role | Description |
---|---|---|
InputInterface.php | Class | Class source |
Files (24) | / | Console | / | Output |
File | Role | Description | ||
---|---|---|---|---|
Classes (1 file) | ||||
Helpers (2 files) | ||||
Interfaces (3 files) |
Files (24) | / | Console | / | Output | / | Helpers |
File | Role | Description |
---|---|---|
ColorGenerator.php | Class | Class source |
ProgressBar.php | Class | Class source |
Files (24) | / | Console | / | Output | / | Interfaces |
File | Role | Description |
---|---|---|
ColorGeneratorInterface.php | Class | Class source |
OutputInterface.php | Class | Class source |
ProgressBarInterface.php | Class | Class source |
Files (24) | / | vendor | / | composer |
File | Role | Description |
---|---|---|
autoload_classmap.php | Aux. | Auxiliary script |
autoload_namespaces.php | Aux. | Auxiliary script |
autoload_psr4.php | Aux. | Auxiliary script |
autoload_real.php | Class | Class source |
autoload_static.php | Class | Class source |
ClassLoader.php | Class | Class source |
LICENSE | Lic. | License text |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.