allansun/openapi-parser

A universal OpenAPI (Swagger) schema parser

v1.0 2018-07-15 21:55 UTC

This package is auto-updated.

Last update: 2020-05-11 19:13:44 UTC


README

A universal OpenAPI (Swagger) schema parser to convert OpenAPI/Swagger files into PHP object for programming use.

Installing

composer require-dev allansun/openapi-parser

Usage

This project is used for 'dev' environment only. It does not generate/provide any codes for run-time environment.

To start

<?php

    $fileContent = file_get_contents(dirname($OPENAPI_FILE_LOCATION));
    $Parser = new SwaggerParser();
    
    $Swagger = $Parser->parse($json);

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details