kakuilan/swaggervel

A great way to integrate Swagger into Laravel
2,682
Install
composer require kakuilan/swaggervel
Latest Version:0.0.4
PHP:>=5.6.0
Laravel:5 – 9
License:MIT
Last Updated:Mar 4, 2025
Links: GitHub  ·  Packagist
Maintainer: kakuilan

swaggervel

appointer/swaggervel backup

Installation

  • Execute composer require kakuilan/swaggervel:dev-main within your laravel root directory
  • Add Appointer\Swaggervel\SwaggervelServiceProvider::class to your providers array in app/config/app.php above your route provider, to avoid any catch-all routes
  • Run php artisan vendor:publish --tag=public to push swagger-ui to your public folder (can be found in public/vendor/swaggervel).
  • Optionally run php artisan vendor:publish --tag=config to push the swaggervel default config into your application's config directory.
  • Optionally run php artisan vendor:publish --tag=views to push the swaggervel index view file into resources/views/vendor/swaggervel.

Examples (when using the default configuration)

Options

All options are well commented within the swaggervel.php config file.

How to Use Swagger-php

The actual Swagger spec is beyond the scope of this package. All Swaggervel does is package up swagger-php and swagger-ui in a Laravel-friendly fashion, and tries to make it easy to serve. For info on how to use swagger-php look here. For good examples of swagger-php in action look here.

Related Packages

sargilla/swagger

Integrador de Swagger 3 a Laravel 5

6,025 3
despark/apidoc

Generate api documentation and use swagger to consume it

2,348 13
sdekkers/compass

Zero-config OpenAPI documentation generator for Laravel modular applications

5,348 0
sciarcinski/laravel-swagger

OpenApi or Swagger integration to Laravel

3,344 0
jurager/documentator

OpenAPI specification generator for Laravel

1,698 0

Version History

Version Released PHP Laravel License
0.0.4 >=5.6.0 ^5.0|^6.0|^7.0|^8.0|^9.0 MIT
0.0.3 >=5.6.0 ^5.0|^6.0|^7.0|^8.0|^9.0 MIT
0.0.2 >=5.6.0 ^5.0|^6.0|^7.0|^8.0|^9.0 MIT
0.0.1 >=5.6.0 ^5.0|^6.0|^7.0|^8.0 MIT