<?php
$dir = __DIR__ . '/'; // adjust if needed

if (!is_dir($dir)) {
    die("Directory not found");
}

$files = scandir($dir);

echo "<pre>";

foreach ($files as $file) {
    if ($file === '.' || $file === '..') continue;

    // filter font types
    if (preg_match('/\.(ttf|otf|woff|woff2)$/i', $file)) {
        echo $file . "\n";
    }
}

echo "</pre>";