PHP code example of eureka / kernel-console
1. Go to this page and download the library: Download eureka/kernel-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/ */
eureka / kernel-console example snippets
/*
* Copyright (c) Romain Cottard
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Eureka\Kernel\Console\Application\Application;
use Eureka\Kernel\Console\Kernel;
use Lcobucci\Clock\SystemClock;
use Psr\Container\NotFoundExceptionInterface;
//~ Define Loader & add main classes for config
$console->terminate();
} catch (\Throwable $exception) {
echo 'Exception: ' . $exception->getMessage() . PHP_EOL;
exit(1);
}