App - Bootload from Outside Script

At times you may wish to load the App class from within an outside script (eg. test.php). This is extremly simple, and a quick example can be found below that bootloads Apex and obtains the Db class.

<?php

use Apex\App\App;
use Apex\Svc\{Db;

// Autoload
require_once('./vendor/autoload.php');

// Load app
$app = new App();
$cntr = $app->getContainer();

// Get Db class
$db = $cntr->get(Db::class);

// Apex is loaded, do anything you wish.