Download the PHP package n1215/openapi-http-foundation-validator without Composer
On this page you can find all versions of the php package n1215/openapi-http-foundation-validator. 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-http-foundation-validator
openapi-http-foundation-validator
OpenAPI(v3) Validators for Symfony http-foundation, using league/openapi-psr7-validator
and symfony/psr-http-message-bridge
.
Requirements
- PHP >= 8.1
Installation
Usage
1. install PSR-17 HTTP Factory implementation.
- You can use any implementation of PSR-17 HTTP Factory.
- ex.
nyholm/psr7
- ex.
2. create http message factory
3. create validator builder
- A builder can be created from YAML file, YAML string, JSON file, or JSON string.
- You can use PSR-16 simple cache instead of PSR-6 Cache.
example1
example2
4. get validators from builder
5. validate request
6. validate response
Usage for Laravel
All versions of openapi-http-foundation-validator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
league/openapi-psr7-validator Version ^0.22
psr/cache Version 1.0|^2.0|^3.0
psr/simple-cache Version ^1.0|^2.0|^3.0
symfony/psr-http-message-bridge Version ^6.0|^7.0
league/openapi-psr7-validator Version ^0.22
psr/cache Version 1.0|^2.0|^3.0
psr/simple-cache Version ^1.0|^2.0|^3.0
symfony/psr-http-message-bridge Version ^6.0|^7.0
The package n1215/openapi-http-foundation-validator contains the following files
Loading the files please wait ....