PHP code example of zorachka / console

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

    

zorachka / console example snippets




declare(strict_types=1);

use Zorachka\Console\Application;

/**
 * Self-called anonymous function that creates its own scope and keeps the global namespace clean.
 */
(function () {
    $application = new ConsoleApplication(
        appName: 'My Console App',
        catchExceptions: false,
        commands: [],
    );
    $application->run();
})();