Download the PHP package io-digital/opendox without Composer
On this page you can find all versions of the php package io-digital/opendox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download io-digital/opendox
More information about io-digital/opendox
Files in io-digital/opendox
Package opendox
Short Description OpenApi(Swagger) 3.0 package for Lumen 5.5+ and Laravel 5.5+ with REDOC UI and SwaggerUI 3
License MIT
Informations about the package opendox
Opendox - OpenAPI 3.0 (Swagger 3) package for Lumen and Laravel
About
This package will add console command to lumen/laravel which will parse yml file, convert it into json and save to public path. Redoc UI is connected and Swagger UI are connected and can be accessed to view generated documentation. Also package adds route for raw json documentation output, so this package can be used in microservice architecture, where all your microservices expose list of available routes.
Features
- Adds console command
php artisan opendox:transform
to transform OpenApi 3.0 specification yaml files to json, so it can be accessible for external services - Adds
/api/documentation
route where you can access Redoc UI interface of documentation - Adds
/api/console
route where you can access Swagger UI interface for API docs and interaction - Adds
/docs
route where RAW json can be accessed
Install
- Install as composer package
Laravel
- Laravel uses provider auto discovery. Config file can be published using command
Lumen
-
Open your bootstrap/app.php and register as service provider
- Config file should be loaded manually in bootstrap/app.php
Usage
- In your application project
/src
folder createapi-docs.yml
file. Write your documentation using OpenAPI standard
Example
-
Transform and publish your configuration file using command
- Now your documentation is accessible via specified routes:
All versions of opendox with dependencies
ext-json Version *
illuminate/routing Version ^8.0|^9.0
symfony/yaml Version ^5.0|^6.0