PHP code example of contao-community-alliance / console
1. Go to this page and download the library: Download contao-community-alliance/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/ */
contao-community-alliance / console example snippets
namespace Acme;
use Symfony\Component\Console\Application;
use Acme\Command\GreetCommand;
class Console
{
public function myInitializeConsole(Application $application)
{
$application->add(new GreetCommand());
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.