<?php
require_once 'vendor_autoload.php';

if (class_exists('\PhpOffice\PhpSpreadsheet\Spreadsheet')) {
    echo "✅ PhpSpreadsheet loaded successfully!";
} else {
    echo "❌ Failed to load. Check if the path is correct.<br>";
    echo "Looking for: " . __DIR__ . "/phpspreadsheet/PhpSpreadsheet/Spreadsheet.php<br>";
    echo file_exists(__DIR__ . "/phpspreadsheet/PhpSpreadsheet/Spreadsheet.php") ? "File exists" : "File not found";
}
?>