12 lines
423 B
PHP
12 lines
423 B
PHP
<?php
|
|
// Without Composer: require this file. With Composer, use vendor/autoload.php.
|
|
spl_autoload_register(static function (string $class): void {
|
|
$prefix = 'InterwebMz\\Whois\\';
|
|
if (strncmp($class, $prefix, strlen($prefix)) !== 0) {
|
|
return;
|
|
}
|
|
$file = __DIR__ . '/src/' . str_replace('\\', '/', substr($class, strlen($prefix))) . '.php';
|
|
if (is_file($file)) {
|
|
require $file;
|
|
}
|
|
});
|