Initial commit

This commit is contained in:
2026-04-06 16:49:17 -04:00
commit 7ec75d0747
36 changed files with 14526 additions and 0 deletions

22
rss/php/autoload.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
spl_autoload_register(function (string $class): void {
$root = rtrim($_SERVER['DOCUMENT_ROOT'], '/');
// PSR-4-ish:
$prefix = 'Vor\\';
$baseDir = $root . '/rss/php/classes/';
if (strncmp($class, $prefix, strlen($prefix)) !== 0) {
return;
}
$relative = substr($class, strlen($prefix));
$file = $baseDir . str_replace('\\', '/', $relative) . '.php';
if (is_file($file)) {
require_once $file;
}
}, true, true);