ISO-codes
openapi-psr7-validator
Our great sponsors
ISO-codes | openapi-psr7-validator | |
---|---|---|
1 | 7 | |
787 | 500 | |
- | 2.0% | |
2.9 | 5.3 | |
2 months ago | 25 days ago | |
PHP | PHP | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ISO-codes
-
PHP libraries and tools
ronanguilloux/isocodes: PHP library - Validators for standards from ISO, International Finance, Public Administrations, GS1, Manufacturing Industry, Phone numbers & Zipcodes for many countries
openapi-psr7-validator
-
Testing an OpenAPI specification in PHP
There is a package within The PHP League that allows validation of an OpenAPI specification: league/openapi-psr7-validator. This package validates requests and responses to the PSR-7 specification.
-
Generate POPO models from OpenApi specification
- https://github.com/thephpleague/openapi-psr7-validator for validation
-
Introduce Raven, a tool to tests your code against an OpenAPI definition !
how does this compare with https://github.com/thephpleague/openapi-psr7-validator
-
Validate your PHP API tests against OpenAPI definitions – a Laravel example
One tool destined for the PHP community and maintained by The PHP League is OpenAPI PSR-7 Message Validator, a package validating PSR-7 HTTP messages against OpenAPI definitions.
-
Do you use open api specs?
Request validation in a middleware layer using thephpleague/openapi-psr7-validator that allows us to validate 99% of an incoming request without the need for boilerplate checks in our handlers/controllers. Business specific checks will still need to be handled in the handler/controller though: eg, make sure user email is unique or validate account ID is still active, etc.
-
PHP libraries and tools
OpenAPI PSR-7 Message (HTTP Request/Response) Validator: It validates PSR-7 messages (HTTP request/response) against OpenAPI specifications.
-
On using PSR abstractions — Matthias Noback
And, imagine my surprise, even a Symfony-dedicated lib that does the same under the hood: https://github.com/thephpleague/openapi-psr7-validator
What are some alternatives?
Respect Validation - The most awesome validation engine ever created for PHP
Symfony - The Symfony PHP framework
DMS Filter - Library that offers Input Filtering based on Annotations for use with Objects. Check out 2.dev for 2.0 pre-release.
PHP-DI - The dependency injection container for humans
Valitron - Valitron is a simple, elegant, stand-alone validation library with NO dependencies
swagger-php - A php swagger annotation and parsing library
Linio Input - Abstracts HTTP request input handling, providing an easy interface for data hydration and validation
phpstan-rules - 👓 Provides a composer package with rules for phpstan/phpstan.
MetaYaml - A powerful schema validator!
Serializer - Library for (de-)serializing data of any complexity (supports JSON, and XML)
PHP validate - Lightweight and feature-rich PHP validation and filtering library. Support scene grouping, pre-filtering, array checking, custom validators, custom messages. 轻量且功能丰富的PHP验证、过滤库。支持场景分组,前置过滤,数组检查,自定义验证器,自定义消息。
L5-Swagger - OpenApi or Swagger integration to Laravel