|
преди 5 години | |
---|---|---|
.. | ||
src | преди 5 години | |
tests | преди 5 години | |
.gitignore | преди 5 години | |
.travis.yml | преди 5 години | |
LICENSE | преди 5 години | |
README.md | преди 5 години | |
composer.json | преди 5 години | |
phpunit.xml.dist | преди 5 години |
Library for parsing swagger documentation into PHP entities for use in testing and code generation
composer require epfremme/swagger-php
composer install
Instantiate the swagger factory and pass it a valid swagger documentation file to parse:
use Epfremme\Swagger\Factory\SwaggerFactory;
$factory = new SwaggerFactory();
$swagger = $factory->build('/path/to/swagger/file.json');
// do stuff with your Swagger entity
Visit the swagger specification for more information on creating valid swagger json/yaml documentation
Currently only swagger version 2.0 is supported in both JSON and YAML format