Server Environment Check"; echo "
Version: " . phpversion() . "
"; echo "Required: 7.4+
"; echo "Status: " . (version_compare(phpversion(), '7.4.0', '>=') ? '✅ OK' : '❌ TOO OLD') . "
"; echo "{$ext}: " . ($loaded ? '✅ Loaded' : '❌ Missing') . "
"; } echo "{$name}/: "; echo $exists ? '✅ Exists' : '❌ Missing'; echo " | "; echo $writable ? '✅ Writable' : '❌ Not Writable'; echo "
"; } echo "✅ vendor/autoload.php exists
"; require_once __DIR__ . '/vendor/autoload.php'; $classes = [ 'League\Csv\Reader' => 'league/csv', 'League\Csv\Writer' => 'league/csv', 'Carbon\Carbon' => 'nesbot/carbon', 'Firebase\JWT\JWT' => 'firebase/php-jwt' ]; foreach ($classes as $class => $package) { $exists = class_exists($class); echo "{$package} ({$class}): " . ($exists ? '✅ Available' : '❌ Missing') . "
"; } } else { echo "❌ vendor/autoload.php NOT FOUND
"; echo "Run: composer install
{$file}: " . ($exists ? '✅ Exists' : '❌ Missing') . "
"; } echo "display_errors: " . ini_get('display_errors') . "
"; echo "error_reporting: " . error_reporting() . "
"; echo "max_upload: " . ini_get('upload_max_filesize') . "
"; echo "max_post: " . ini_get('post_max_size') . "
"; echo "memory_limit: " . ini_get('memory_limit') . "
"; echo "✅ CSVTransformer: OK
"; } catch (Exception $e) { echo "❌ CSVTransformer: " . $e->getMessage() . "
"; } try { require_once __DIR__ . '/OMGService.php'; $omg = new OMGService(); echo "✅ OMGService: OK
"; } catch (Exception $e) { echo "❌ OMGService: " . $e->getMessage() . "
"; } try { require_once __DIR__ . '/EmailService.php'; $email = new EmailService(); echo "✅ EmailService: OK
"; } catch (Exception $e) { echo "❌ EmailService: " . $e->getMessage() . "
"; } echo "If all checks pass above, the application should work.
"; echo "If you see errors, fix them and run this check again.
";