Download the PHP package hmaus/spas-parser without Composer
On this page you can find all versions of the php package hmaus/spas-parser. 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 spas-parser
spas-parser
Defines common interfaces for creating concrete parsers that work with spas testing tool.
Details
Spas is a tool to test an API description against a given environment.
As spas itself is description language agnostic, it relies on different concrete implementations
of spas-parser which defines the common interfaces.
Installation
The recommended way to install, is using composer:
Implementations
- API Blueprint Refract ParseResult - spas-parser-apib
How To Create A Parser
Have a look at spas-parser-apib for a working example
- Start a new composer library
- Implement the
Parser
interface - To keep things aligned, name your implementation
<Language>
, e.g.Apib
- The namespace is up to you, I suggest
<Yourname>\Spas\Parser
, e.g.Hmaus\Spas\Parser
So you end up with\<Yourname>\Spas\Parser\Apib
- The
parse
method is supposed to return an array ofParsedRequest
elements where each contains aParsedResponse
to have a request/response pair - Publish your package on packagist and require it in your toolbox alongside spas to use it
All versions of spas-parser with dependencies
PHP Build Version
Package Version
The package hmaus/spas-parser contains the following files
Loading the files please wait ....