<?php
declare(strict_types=1);

session_start();

require_once __DIR__ . '/config.php';

// Composer autoload (PhpSpreadsheet, etc.)
// NOTE: vendor/ is not shipped in the ZIP by default. Run `composer install` in project root.
$autoload = __DIR__ . '/../vendor/autoload.php';
if (file_exists($autoload)) {
  require_once $autoload;
}

require_once __DIR__ . '/db.php';
require_once __DIR__ . '/helpers.php';
require_once __DIR__ . '/auth.php';
require_once __DIR__ . '/pdf.php';
require_once __DIR__ . '/audit.php';

date_default_timezone_set(app_config('APP_TIMEZONE', 'Asia/Dubai'));
