fnash/hydra-doc-parser
Composer 安装命令:
composer require fnash/hydra-doc-parser
包简介
Hydra API documentation parser
README 文档
README
Parse Hydra documentation to extract Resources and readable Fields. Detects if a given field is a scalar, or a link (jsonld IRI) to one or many Resources.
Install
$ composer require fnash/hydra-doc-parser dev-master
Use
require_once 'vendor/autoload.php'; $doc = \Fnash\HydraDoc\HydraDoc::fromUrl('https://demo.api-platform.com/docs.jsonld'); echo $doc->pretty();
- #ConstraintViolation --- message: xmls:string --- propertyPath: xmls:string - #ConstraintViolationList --- violations: #ConstraintViolation - #Entrypoint - #Parchment --- description: xmls:string --- title: xmls:string - http://schema.org/Book --- author: xmls:string --- description: xmls:string --- isbn: xmls:string --- publicationDate: xmls:dateTime --- reviews: http://schema.org/Review --- title: xmls:string - http://schema.org/Review --- author: xmls:string --- body: xmls:string --- book: http://schema.org/Book --- letter: xmls:string --- publicationDate: xmls:dateTime --- rating: xmls:integer
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-08