2017 © Pedro Peláez
 

library swagger

Swagger parser for PHP

image

thefrozenfire/swagger

Swagger parser for PHP

  • Tuesday, February 28, 2017
  • by TheFrozenFire
  • Repository
  • 2 Watchers
  • 26 Stars
  • 23,637 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 16 Forks
  • 6 Open issues
  • 14 Versions
  • 4 % Grown

The README.md

Swagger Parser

Parse Swagger specification documents programmatically, and also parse data structures according to a specification., (*1)

Installation

composer require thefrozenfire/swagger:^2.0, (*2)

License

Use

Describe an Operation

getOperationById('addPet');
?>
Operation ID: =$operation->getOperationId()?> 
Tags: =implode(', ', $operation->getTags())?> 
Summary: =$operation->getSummary()?> 
Description: =$operation->getDescription()?> 
External Documentation: =$operation->getExternalDocs()?> 

Parse a data structure

getSchemaResolver();

$dataType = $document->getSchemaForOperationResponse(
    'getPetById',
    200
);

$schemaObject = $schemaResolver->parseType($dataType, $dataToParse);
?>
Pet name: =$schemaObject->getProperty('name')?>
Pet status: =$schemaObject->status?>

The Versions

28/02 2017

2.0.x-dev

2.0.9999999.9999999-dev

Swagger parser for PHP

  Sources   Download

The Requires

  • php >=5.5

 

The Development Requires

05/08 2016

2.0.10

2.0.10.0

Swagger parser for PHP

  Sources   Download

The Requires

  • php ^5.5

 

The Development Requires

10/06 2016

2.0.9

2.0.9.0

Swagger parser for PHP

  Sources   Download

The Requires

  • php ^5.5

 

The Development Requires

26/05 2016

2.0.8

2.0.8.0

Swagger parser for PHP

  Sources   Download

The Requires

  • php ^5.5

 

The Development Requires

24/09 2015

2.0.6

2.0.6.0

Swagger parser for PHP

  Sources   Download

The Development Requires

24/09 2015

2.0.7

2.0.7.0

Swagger parser for PHP

  Sources   Download

The Development Requires

21/09 2015

2.0.5

2.0.5.0

Swagger parser for PHP

  Sources   Download

The Development Requires

16/09 2015

2.0.4

2.0.4.0

Swagger parser for PHP

  Sources   Download

The Development Requires

08/09 2015

2.0.3

2.0.3.0

Swagger parser for PHP

  Sources   Download

The Development Requires

04/09 2015

2.0.2

2.0.2.0

Swagger parser for PHP

  Sources   Download

The Development Requires

02/09 2015

2.0.1

2.0.1.0

Swagger parser for PHP

  Sources   Download

The Development Requires

02/09 2015

2.0.0

2.0.0.0

Swagger parser for PHP

  Sources   Download

The Development Requires

25/08 2015

1.2.x-dev

1.2.9999999.9999999-dev

Swagger parser for PHP

  Sources   Download

The Development Requires

25/08 2015

1.2.0

1.2.0.0

Swagger parser for PHP

  Sources   Download

The Development Requires