PHP code example of articus / container-interop-symfony-console
1. Go to this page and download the library: Download articus/container-interop-symfony-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/ */
articus / container-interop-symfony-console example snippets
#!/usr/bin/php
chdir(dirname(__DIR__));
/** @var \Psr\Container\ContainerInterface $container */
$container = /* some code to instantiate your PSR-11 container */;
/** @var \Symfony\Component\Console\Application $app */
$app = $container->get(\Symfony\Component\Console\Application::class);
$app->run();