PHP code example of maduser / argon-console

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

    

maduser / argon-console example snippets


use Maduser\Argon\Console\Provider\ConsoleServiceProvider;
use Maduser\Argon\Container\ArgonContainer;

$container = new ArgonContainer();
$container->register(ConsoleServiceProvider::class);

$container->set(App\Command\DemoCommand::class)
    ->tag([ConsoleServiceProvider::COMMAND_TAG]);