Skip to content

DxBang/BangSystems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BangSystems

Bang.Systems PHP8 Framework
built with security in mind
Version 4.y.z

getting started

public/index.php

<?php
$_SERVER['REQUEST_TIME_FLOAT'] = $_SERVER['REQUEST_TIME_FLOAT'] ?? microtime(1); # benchmark
define('SITE_ROOT', dirname(__DIR__));
define('SITE_PUBLIC', SITE_ROOT.'/public');
define('SITE_PRIVATE', SITE_ROOT.'/private');
define('SITE_VENDOR', SITE_PRIVATE.'/vendor');
define('SITE_UI', SITE_PUBLIC.'/ui');
define('WEB_UI', '/ui');
define('BANG_DEBUG_MARKS', true);

require_once '/srv/src/bang/v4/bang.php';
switch (\Bang\Bang::path(0)) {
	case 'api':
		new \Bang\System\API();
	break;
	case 'image':
		new \Bang\System\Image();
	break;
	case 'video':
		new \Bang\System\Video();
	break;
	default:
		new \Bang\System\Website();
	break;
}

Releases

No releases published

Packages

No packages published