<?php
// test.php
error_reporting(E_ALL);
ini_set('display_errors', 1);

require_once __DIR__ . '/vendor/phpoffice/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/IOFactory.php';

if (class_exists('\PhpOffice\PhpSpreadsheet\IOFactory')) {
    echo "PhpSpreadsheet found and loaded successfully";
} else {
    echo "PhpSpreadsheet not found";
}

// Print directory structure
echo "\n\nDirectory structure:\n";
var_dump(glob(__DIR__ . '/vendor/phpoffice/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/*'));