You can use this router as PSR-15 middleware.
Example with https://github.com/procurios/middleware-dispatcher :