Download the PHP package membrane/openapi-router without Composer
On this page you can find all versions of the php package membrane/openapi-router. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package openapi-router
OpenAPI Router
This library routes HTTP requests to operationIds in your OpenAPI specification. To make sure it runs quickly we've used techniques inspired by Nikita Popov and Nicolas Grekas.
Requirements
- A valid OpenAPI specification.
- An operationId on all Operation Objects so that each route is uniquely identifiable.
Rules
Naming Conventions
- Forward slashes at the end of a server url will be ignored since paths MUST begin with a forward slash.
- Dynamic paths which are identical other than the variable names MUST NOT exist.
Routing Priorities
- Static urls MUST be prioritized over dynamic urls.
- Longer urls are prioritized over shorter urls.
- Hosted servers will be prioritized over hostless servers.
Installation
Quick Start
To read routes dynamically, you can do the following:
Caching Routes
Run the following console command to cache the routes from your OpenAPI, to avoid reading your OpenAPI file everytime:
All versions of openapi-router with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1.0
membrane/openapi-reader Version ^3.0
psr/http-message Version ^1.0 || ^2.0
psr/log Version ^3.0
symfony/console Version ^6.0 || ^7.0
membrane/openapi-reader Version ^3.0
psr/http-message Version ^1.0 || ^2.0
psr/log Version ^3.0
symfony/console Version ^6.0 || ^7.0
The package membrane/openapi-router contains the following files
Loading the files please wait ....