mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 13:38:22 +01:00
16 lines
380 B
PHP
16 lines
380 B
PHP
<?php
|
|
|
|
// Check PHP version requirements
|
|
if (!version_compare(PHP_VERSION, '8.3.0', '>=')) {
|
|
require __DIR__ . '/views/errors/phpversion.php';
|
|
exit;
|
|
}
|
|
|
|
// Check if Composer autoloader is available
|
|
if (file_exists(ROOT_PATH . '/vendor/autoload.php')) {
|
|
require ROOT_PATH . '/vendor/autoload.php';
|
|
} else {
|
|
require __DIR__ . '/views/errors/install.php';
|
|
exit;
|
|
}
|