PHP code example of ghign0 / console

1. Go to this page and download the library: Download ghign0/console 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/ */

    

ghign0 / console example snippets




use Console\Console;

$console = new Console([
    'command' => \Path\To\Class\CommandClass::class
]);
$console->run();

namespace Console\Command;

interface CommandInterface
{
    public function getCommand();

    public function execute();

    public function help();

}