search hotlink icon profile hotlink icon
ma Public | 1.x.x

On This Page

Maze is a PHP router that maps HTTP requests to custom entries, such as controllers responsible for handling specific web app logic.

Extendable Routes and Config

For routes and config files, Maze uses Fusion's out-of-the-box extension implementation, allowing dependency packages in the chain to be extended by consumer packages, for example:

  • Package2
    • Consumes Package1 as a dependency
    • Custom app that extends Maze with additional (on-top) files
    • Modifies base app files
  • Package1
    • Consumes Maze as a dependency
    • Basic app that extends Maze with initial files
  • Maze (Package0)
    • Single Point of Truth (SPOT)
    • Modular logic without files

The chain can include as many extender packages as your project requires.

Efficient Lookup

Maze does not load all possible routes for a lookup. Cached routes are organized by request methods (GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD), with each method stored in a separate cached file, while raw files are checked in top-down extender order, stopping at the first match.