PHP code example of reinvanoyen / oak-aegis
1. Go to this page and download the library: Download reinvanoyen/oak-aegis 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/ */
reinvanoyen / oak-aegis example snippets
$app = new \Oak\Application();
// Register service provider
$app->register([
// Oak
\Oak\Config\ConfigServiceProvider::class,
\Oak\Console\ConsoleServiceProvider::class,
\Oak\Filesystem\FilesystemServiceProvider::class,
// Packages
\ReinVanOyen\OakAegis\AegisServiceProvider::class,
]);
$app->bootstrap();
// Start using Aegis
$template = $app->get(Template::class);
$template->set('title', 'Aegis');
echo $template->render('index');