PHP code example of nicolasdewez / application-console

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

    

nicolasdewez / application-console example snippets



    use App\Command\MyCommand;
    use Ndewez\ApplicationConsoleBundle\Application\Application;
    
    $application = new Application(__DIR__.'/config/services.xml');
    $application->addContainerCommand(new MyCommand());
    $application->run();