2017 © Pedro Peláez
 

library spas-parser

Common interfaces for spas parsers

image

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

The README.md

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

The Versions

13/12 2016

dev-master

9999999-dev

Common interfaces for spas parsers

  Sources   Download

MIT

The Requires

 

by Hendrik Maus

13/12 2016

v2.2.0

2.2.0.0

Common interfaces for spas parsers

  Sources   Download

MIT

The Requires

 

by Hendrik Maus

09/12 2016

v2.1.0

2.1.0.0

Common interfaces for spas parsers

  Sources   Download

MIT

The Requires

 

by Hendrik Maus

02/12 2016

v2.0.1

2.0.1.0

Common interfaces for spas parsers

  Sources   Download

MIT

The Requires

 

by Hendrik Maus

30/11 2016

v2.0.0

2.0.0.0

Common interfaces for spas parsers

  Sources   Download

MIT

The Requires

 

by Hendrik Maus

29/11 2016

v1.2.0

1.2.0.0

Common interfaces for spas parsers

  Sources   Download

MIT

The Requires

 

by Hendrik Maus

29/11 2016

v1.1.0

1.1.0.0

Common interfaces for spas parsers

  Sources   Download

MIT

The Requires

 

by Hendrik Maus

26/10 2016

v1.0.0

1.0.0.0

Common interfaces for spas parsers

  Sources   Download

MIT

The Requires

 

by Hendrik Maus

26/10 2016

dev-align-namespace

dev-align-namespace

Common interfaces for spas parsers

  Sources   Download

MIT

The Requires

 

by Hendrik Maus

30/08 2016

v0.1.0

0.1.0.0

Common interfaces for spas parsers

  Sources   Download

MIT

The Requires

 

by Hendrik Maus