api-validator-php:用于eLife Sciences APIPHP验证程序

时间:2021-04-14 03:30:06
【文件属性】:
文件名称:api-validator-php:用于eLife Sciences APIPHP验证程序
文件大小:19KB
文件格式:ZIP
更新时间:2021-04-14 03:30:06
PHP 适用于PHP的eLife API验证程序 该库提供了的验证器。 它检查HTTP请求/响应以确保它们符合规范。 当前,仅针对该媒体类型的架构验证消息的主体。 依存关系 PHP 7 安装 执行composer require elife/api-validator:dev-master 。 用法 要验证消息: use eLife\ ApiValidator \ MessageValidator \ JsonMessageValidator ; use eLife\ ApiValidator \ SchemaFinder \ PathBasedSchemaFinder ; use JsonSchema \ Validator ; $ messageValidator = new JsonMessageValidator ( new PathBasedSchemaFinder ( '/path
【文件预览】:
api-validator-php-master
----composer.json(832B)
----phpcs.xml.dist(582B)
----Jenkinsfile(272B)
----test()
--------resources()
--------src()
----maintainers.txt(7B)
----LICENSE(1KB)
----src()
--------MediaType.php(2KB)
--------MessageValidator.php(261B)
--------MessageValidator()
--------SchemaFinder.php(227B)
--------SchemaFinder()
--------Exception()
----phpspec.yml.dist(105B)
----spec()
--------MessageValidator()
--------MediaTypeSpec.php(1KB)
--------SchemaFinder()
--------Exception()
----.gitignore(47B)
----project_tests.sh(582B)
----phpunit.xml.dist(524B)
----README.md(852B)
----build()
--------.gitkeep(0B)

网友评论