Download the PHP package freedomcore/laravel-swagger without Composer
On this page you can find all versions of the php package freedomcore/laravel-swagger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download freedomcore/laravel-swagger
More information about freedomcore/laravel-swagger
Files in freedomcore/laravel-swagger
Package laravel-swagger
Short Description Swagger documentation generator for Laravel
License MIT
Informations about the package laravel-swagger
Laravel Swagger
Simple to use OAS3 compatible documentation generator.
Also includes Swagger UI.
About
This package is heavily inspired by the mtrajano/laravel-swagger and DarkaOnLine/L5-Swagger.
Usage is pretty similar to the mtrajano/laravel-swagger with the difference being:
- OAS3 support
- "Custom decorators" inspired by Nest.JS
- Automatic generation (assuming relevant configuration option is turned on)
- Inclusion of Swagger UI
I've spent a couple of hours making this package to suit my needs, and it does so far.
All I am trying to say is - I don't think I will be actively maintaining this package unless people will have interest in it.
Requirements
This package developed on Laravel 8.11.2, but it might work on the previous releases.
All other requirements are inherited from the Laravel 8.
Installation
Install package through composer
Publish configuration files and views
Edit the swagger.php configuration file for your liking
Usage
@Request() decorator
You can have only one @Request() decorator.
@Response() decorator
You can have multiple @Response decorators
Custom Validators
These validators are made purely for visual purposes, however, some of them can actually do validation