Skip to main content

Generating API Documentation with OpenAPI Swagger

Premium
3:44

In this lesson, we will check another tool for generating API documentation called Laravel Swagger using the DarkaOnLine/L5-Swagger package.

Swagger is an open standard for APIs, not specifically for Laravel or PHP. It is general for all APIs. Now, swagger is called OpenAPI, but you can find it in both names on the internet.

This package works similarly to Scribe by adding docblocks and running an artisan command to generate documentation.


You can install Swagger via Composer.

composer require "darkaonline/l5-swagger"

And publish config with views if needed.

php artisan vendor:publish --provider "L5Swagger\L5SwaggerServiceProvider"

You can specify global configuration in the...

The Full Lesson is Only for Premium Members

Want to access all of our courses? (30 h 33 min)

You also get:

55 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

No comments yet…

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.