The NaturalSwagger allows you to generate a decent documentation for your APIs. This library is based on zircote/swagger-php and swagger-ui.
This library provide for your system a swagger UI based
composer require diegoborgs/natural-swagger-php
use Diegoborgs\NaturalSwaggerPhp\OpenApiRenderFactory;
use Diegoborgs\NaturalSwaggerPhp\Renders\RenderOpenApi;
$render = OpenApiRenderFactory::get();
$render->render(RenderOpenApi::HTML, ['base_path' => '/path/to/annotations']);
Fork the project and send your PR.
Install the Composer dependencies:
git clone https://github.com/eudiegoborgs/natural-swagger-php.git
cd natural-swagger-php
docker-compose run --rm composer update
// or
composer update
Then run the test suite:
docker-compose run --rm composer test
// or
composer test
This bundle is released under the MIT license.