zazalt / konzola
Konzola
Installs: 138
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/zazalt/konzola
Requires
- php: >=7.1.0
This package is not auto-updated.
Last update: 2025-09-28 01:17:33 UTC
README
Requirements
- php >= 7.1.0
Packagist Dependencies
- None
Installation
With composer:
{ "require": { "zazalt/konzola": "dev-master" } }
Usage
require_once is_dir('../vendor/') ? '../vendor/autoload.php' : 'vendor/autoload.php'; \Zazalt\Konzola\Konzola::text('This is a rainbow.')->rainbow();
require_once is_dir('../vendor/') ? '../vendor/autoload.php' : 'vendor/autoload.php'; $Konzola = new \Zazalt\Konzola\Konzola(); /** * Usage: * php example2.php theCommand -a --b --c lorem -d ipsum */ echo 'Given command: '. $Konzola->getCommand() ."\n"; echo '--c argument: '. $Konzola->getArgument('c') ."\n"; echo 'Given arguments: '; print_r($Konzola->getArguments());