$line && ! str_starts_with($line, '#')); array_walk($filteredLines, function ($line) { [$name, $value] = array_map('trim', explode('=', $line, 2)); if (! array_key_exists($name, $_ENV)) { putenv(sprintf('%s=%s', $name, $value)); } }); } loadEnv(__DIR__.'/../../.env'); if (! $autoloader = require file_exists(__DIR__.'/../vendor/autoload.php') ? __DIR__.'/../vendor/autoload.php' : __DIR__.'/../../autoload.php') { throw new \Exception('Composer autoloader not found. Run `composer install` and try again.'); } if (! extension_loaded('sqlite3')) { throw new \Exception('The SQLite3 extension is required but not loaded. Please enable it in your PHP configuration.'); } Install::second(); Install::fourth([ 'username' => 'admin', 'email' => 'admin@example.com', 'confirm_email' => 'admin@example.com', 'password' => 'password', 'confirm_password' => 'password', 'charclass' => '1', // [1 => 'Mage', 2 => 'Warrior', 3 => 'Paladin'] ]); Install::fifth();