Download the PHP package il4mb/routing without Composer
On this page you can find all versions of the php package il4mb/routing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download il4mb/routing
More information about il4mb/routing
Files in il4mb/routing
Download il4mb/routing
More information about il4mb/routing
Files in il4mb/routing
Vendor il4mb
Package routing
Short Description Deterministic routing engine with an HTTP attribute router adapter (priority, fallback, wildcard matching, tracing, and reloadable rules)
License MIT
Package routing
Short Description Deterministic routing engine with an HTTP attribute router adapter (priority, fallback, wildcard matching, tracing, and reloadable rules)
License MIT
Please rate this library. Is it a good library?
Informations about the package routing
Routing Engine (PHP)
This repository provides a deterministic routing engine that can be embedded into infrastructure-style software:
- HTTP applications (controller routing)
- API gateways and reverse proxies (upstream selection)
- Programmable network services (policy routing)
- Mail servers (message classification and delivery policy)
The project contains both:
- a protocol-agnostic core (
src/Engine/*) with explicit match and decision phases, and - a legacy HTTP router (
src/Router.php) that compiles attribute routes into the core engine.
The intent is to keep routing decisions explainable, testable, and observable.
Requirements
- PHP 8.1+
- Composer (for autoloading)
Installation
Quick Start (HTTP Attribute Routes)
When debugTrace=true, the router stores trace data into:
Request::get('__route_trace')Request::get('__route_decision')
Using the Core Engine (Protocol-Agnostic)
The engine routes a RoutingContext through a deterministic pipeline.
Documentation
- Architecture: docs/architecture.md
- Routing model: docs/routing.md
- HTTP router (legacy adapter): docs/http.md
- HTTP controllers (binding + request/response cookbook): docs/http-controller.md
- Extensions: docs/extensions.md
Release notes
- Changelog: CHANGELOG.md
Examples
- Gateway-style routing + tracing: examples/gateway-routing.php
- Gateway-style middleware pipeline around target execution: examples/gateway-middleware.php
- Hot reload via
PhpRuleLoader+RouterEngine::reload(): examples/hotreload.php - HTTP attribute routing (basic): examples/http-basic.php
- HTTP attribute routing (header constraints): examples/http-headers.php
- HTTP attribute routing (priority + fallback): examples/http-priority-fallback.php
- Real HTTP app (public/index.php style): examples/http-app/README.md
Tests
Run the lightweight (dependency-free) tests:
Design Philosophy
- Explicit over implicit: matching, ordering, and decision policy are visible.
- Configuration as code: routes can be loaded as typed objects and tested.
- Predictable execution: deterministic tie-breaking (priority → specificity → id).
- Minimal magic: adapters own side-effects; the core engine stays pure.
License
MIT. See LICENSE.
All versions of routing with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
The package il4mb/routing contains the following files
Loading the files please wait ...