Download the PHP package bchalier/laravel-openapi-autodoc without Composer
On this page you can find all versions of the php package bchalier/laravel-openapi-autodoc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bchalier/laravel-openapi-autodoc
More information about bchalier/laravel-openapi-autodoc
Files in bchalier/laravel-openapi-autodoc
Download bchalier/laravel-openapi-autodoc
More information about bchalier/laravel-openapi-autodoc
Files in bchalier/laravel-openapi-autodoc
Vendor bchalier
Package laravel-openapi-autodoc
Short Description Automatic documentation of laravel in OpenApi format.
License MIT
Package laravel-openapi-autodoc
Short Description Automatic documentation of laravel in OpenApi format.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-openapi-autodoc
Laravel OpenAPI Autodoc
Generates OpenAPI v3 documentation from your Laravel routes, FormRequests and API Resources.
Compatible with Laravel 10–12 and PHP 8.1–8.4.
Install
1) Require the package in your app (Composer path repo supported):
2) Publish the config if you need to customize:
php artisan vendor:publish --tag=config --provider="Bchalier\LaravelOpenapiDoc\App\Providers\LoadingServiceProvider"
Usage
- Generate the JSON file:
php artisan documentation:generate
- Output file:
- Stored on the
publicdisk atstorage/app/public/documentation/openapi.json. - If you’ve run
php artisan storage:link, it’s available at/storage/documentation/openapi.json.
- Stored on the
How it works
- Parses route list and filters via
config/documentation.php. - Infers request schemas from FormRequest validation rules.
- Infers response schemas from return types:
JsonResource,ResourceCollection,JsonResponse. - Uses docblocks for operation summary/description and
@throwsto add error responses.
Notes
- Models instantiated for resources must use
Illuminate\Database\Eloquent\Factories\HasFactory. - When route names are missing, operationId falls back to
<method>_<uri>.
All versions of laravel-openapi-autodoc with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1|^8.2|^8.3|^8.4
laravel/framework Version ^10.0|^11.0|^12.0|^13.0
goldspecdigital/oooas Version ^2.4
phpdocumentor/reflection-docblock Version ^5.1
doctrine/annotations Version ^2.0.1
laravel/framework Version ^10.0|^11.0|^12.0|^13.0
goldspecdigital/oooas Version ^2.4
phpdocumentor/reflection-docblock Version ^5.1
doctrine/annotations Version ^2.0.1
The package bchalier/laravel-openapi-autodoc contains the following files
Loading the files please wait ...