Download the PHP package phrity/slim-openapi without Composer
On this page you can find all versions of the php package phrity/slim-openapi. 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 slim-openapi
OpenApi for Slim v4
Adapter that reads OpenApi schema and add included routes to Slim.
By defining operationId
in OpenApi schema, the adapter will automatically instanciate and call referenced controller class.
Some features
- Automatic mapping of routes to controllers
- OpenApi specification in JSON or YAML source
- Optional validation of requests and responses
Installation
Install with Composer;
How to use
How to define controllers
In order for automatic mapping to work, the operationId
must be set on all defined routes in OpenApi source.
If no method is specified, class method __invoke()
will be called on class.
With invoke | With method |
---|---|
Classname |
Classname:method |
Namespace/Classname |
Namespace/Classname:method |
Namespace\\Classname |
Namespace\\Classname:method |
Example
Documentation
- Basics
- Settings
- Validation
- Extras
Versions
Version | PHP | |
---|---|---|
1.2 |
^7.4\|^8.0 |
Request/Response validation, YAML support |
1.1 |
^7.4\|^8.0 |
Settings & helpers |
1.0 |
^7.4\|^8.0 |
Route registry |
All versions of slim-openapi with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 | ^8.0
cebe/php-openapi Version ^1.4
league/openapi-psr7-validator Version ^0.15
psr/container Version ^1.0 | ^2.0
psr/http-message Version ^1.0
psr/http-server-middleware Version ^1.0
slim/slim Version ^4.0
cebe/php-openapi Version ^1.4
league/openapi-psr7-validator Version ^0.15
psr/container Version ^1.0 | ^2.0
psr/http-message Version ^1.0
psr/http-server-middleware Version ^1.0
slim/slim Version ^4.0
The package phrity/slim-openapi contains the following files
Loading the files please wait ....