public static function autoload_library($name) { $file = __DIR__ . '/' . str_replace('\\', DIRECTORY_SEPARATOR, $name) . '.php'; if (file_exists($file)) { include $file; } }