添加vendor扩展包

This commit is contained in:
Dev
2026-09-22 16:43:47 +08:00
parent 229c361e9a
commit cfa9c4e208
2373 changed files with 443948 additions and 4 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
function classLoader($class)
{
$path = str_replace('\\', DIRECTORY_SEPARATOR, $class);
$file = __DIR__ . DIRECTORY_SEPARATOR .'src'. DIRECTORY_SEPARATOR . $path . '.php';
if (file_exists($file)) {
require_once $file;
}
}
spl_autoload_register('classLoader');