A universal OpenAPI (Swagger) schema parser
A universal OpenAPI (Swagger) schema parser to convert OpenAPI/Swagger files into PHP object for programming use.
composer require-dev allansun/openapi-parser
This project is used for 'dev' environment only. It does not generate/provide any codes for run-time environment.
<?php $fileContent = file_get_contents(dirname($OPENAPI_FILE_LOCATION)); $Parser = new SwaggerParser(); $Swagger = $Parser->parse($json);
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Allan Sun - Initial work - AllanSun
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details