Add TuxiNet branding and document templates

This commit is contained in:
Thomas
2025-10-28 13:56:54 +01:00
parent f956a735ca
commit 3755435890
48 changed files with 1762 additions and 1 deletions

29
bootstrap/helpers.php Normal file
View File

@@ -0,0 +1,29 @@
<?php
use App\Core\Config;
if (!function_exists('config')) {
function config(string $key, $default = null)
{
return Config::getInstance()->get($key, $default);
}
}
if (!function_exists('env')) {
function env(string $key, $default = null)
{
$value = $_ENV[$key] ?? $_SERVER[$key] ?? getenv($key);
if ($value === false || $value === null) {
return $default;
}
return $value;
}
}
if (!function_exists('base_path')) {
function base_path(string $path = ''): string
{
$base = realpath(__DIR__ . '/..');
return $path ? $base . '/' . ltrim($path, '/') : $base;
}
}