library spas-parser
Common interfaces for spas parsers
hmaus/spas-parser
Common interfaces for spas parsers
- Tuesday, December 13, 2016
- by hendrikmaus
- Repository
- 4 Watchers
- 1 Stars
- 329 Installations
- PHP
- 3 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 10 Versions
- 0 % Grown
spas-parser
Defines common interfaces for creating concrete parsers that work with
spas testing tool., (*1)
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., (*2)
Installation
The recommended way to install, is using composer:, (*3)
composer require hmaus/spas-parser
Implementations
How To Create A Parser
Have a look at spas-parser-apib for a working example, (*4)
- 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 of ParsedRequest elements
where each contains a ParsedResponse to have a request/response pair
- Publish your package on packagist and require it in your toolbox alongside spas to use it
dev-master
9999999-dev
Common interfaces for spas parsers
Sources
Download
MIT
The Requires
by
Hendrik Maus
v2.2.0
2.2.0.0
Common interfaces for spas parsers
Sources
Download
MIT
The Requires
by
Hendrik Maus
v2.1.0
2.1.0.0
Common interfaces for spas parsers
Sources
Download
MIT
The Requires
by
Hendrik Maus
v2.0.1
2.0.1.0
Common interfaces for spas parsers
Sources
Download
MIT
The Requires
by
Hendrik Maus
v2.0.0
2.0.0.0
Common interfaces for spas parsers
Sources
Download
MIT
The Requires
by
Hendrik Maus
v1.2.0
1.2.0.0
Common interfaces for spas parsers
Sources
Download
MIT
The Requires
by
Hendrik Maus
v1.1.0
1.1.0.0
Common interfaces for spas parsers
Sources
Download
MIT
The Requires
by
Hendrik Maus
v1.0.0
1.0.0.0
Common interfaces for spas parsers
Sources
Download
MIT
The Requires
by
Hendrik Maus
dev-align-namespace
dev-align-namespace
Common interfaces for spas parsers
Sources
Download
MIT
The Requires
by
Hendrik Maus
v0.1.0
0.1.0.0
Common interfaces for spas parsers
Sources
Download
MIT
The Requires
by
Hendrik Maus