-
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Greg Bowler edited this page Sep 16, 2025
·
1 revision
One of the initial responsibilities of all web applications is to route an incoming request to the corresponding code that will build the response. This repository separates the responsibilities of routing, logic, and view rendering.
- Default settings for WebEngine applications: No need to set up the routing for WebEngine usage.
- Attribute-based routing: Define routes using PHP 8 attributes that match components of the incoming request.
- HTTP method support: Define routes that match individual or all HTTP methods.
- Content negotiation: Automatically select the appropriate route based on the incoming accept header.
- Assemblies: Group logic and view files together based on the request.
- Redirects handling: Built-in support for various HTTP redirects (301, 302, 303, 307, 308).
- PSR-7 compatible: Works with any PSR-7 compliant HTTP message implementation.
For more information on the purpose of routing, read understanding routing.
PHP.GT/Routing is a separately maintained component of PHP.GT/WebEngine.