1. Go to this page and download the library: Download codectrl-sro/apollo 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/ */
codectrl-sro / apollo example snippets
// public/index.php
Apollo;
use CodeCTRL\Apollo\Core\Env;
use CodeCTRL\Apollo\UI\Html\Html;
$app = new Apollo();
$app->setBaseDir(dirname(__DIR__));
$app->setHomeDir(dirname(__DIR__));
if (Env::bool('APP_DEBUG', false)) {
$app->allowErrorReporting();
}
// Fail at boot with a message naming the key, rather than deep inside a library later.
Env::assertRequired(['CRYPT_SECRET']);
Html::emit($app->run());