Web 应用程序中调用的这些路由样式是什么?

What are these routing styles called in a web application?

将一个 URL 直接映射到文件的路由叫什么?

示例:

http://localhost/directory/file.php => /var/www/apache/htdocs/directory/file.php

https://github.com/nikic/FastRoute上的那种路由叫什么?

示例:

http://localhost/directory/file => 请求实际上转到单个 index.php 文件,然后加载路由文件或 tables 并加载适当的 class,如路由中定义的table.

What do you call routing that maps one URL directly to a file?

我会称之为无路由。或者直接路由?我从来没有听说过有人专门为它使用过一个术语。

What do you call routing like one on https://github.com/nikic/FastRoute?

那是(通常)front controller 模式。