appointer/swaggervel
Larablocks Analysis
appointer/swaggervel works with Laravel 5 and 6 (latest release v2.5, Sep 9, 2019), all past end of life (the last on Sep 6, 2022): no more fixes, even for security.
Recommendation checks
Not advisedNot advised: marked abandoned on Packagist.
- Marked abandoned on Packagist
- Supports only Laravel 5 and 6, past end of life since Sep 6, 2022
- No release in the last 12 months (last: Sep 9, 2019)
- 1,186 downloads a month (needs 10,000)
- 69 GitHub stars (needs 100)
State
Abandoned- Packagist marks this package abandoned.
- Last stable release: Sep 9, 2019.
- No releases in the last 12 months.
- First released: Jan 21, 2017.
- Monthly downloads: 1,186.
- 5 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require appointer/swaggervel |
|
| Latest Version: | v2.5 |
| PHP: | >=5.6.0 |
| Laravel: | 5 · 6 |
| License: | MIT |
| Last Updated: | Jan 8, 2020 |
| Links: | GitHub · Packagist |
Swaggervel (Swagger integration for Laravel 5)
This package combines Swagger-php and swagger-ui into one Laravel-friendly package.
When you run your app in debug mode, Swaggervel will scan your app folder (or any folder that is set under the "app-dir" variable in the packages config), generate swagger json files and deposit them to the doc-dir folder (default is /docs). Files are then served by swagger-ui under the api-docs director.
Installation
- Execute
composer require appointer/swaggervel --devwithin your laravel root directory - Add
Appointer\Swaggervel\SwaggervelServiceProvider::classto your providers array inapp/config/app.phpabove your route provider, to avoid any catch-all routes - Run
php artisan vendor:publish --tag=publicto push swagger-ui to your public folder (can be found in public/vendor/swaggervel). - Optionally run
php artisan vendor:publish --tag=configto push the swaggervel default config into your application's config directory. - Optionally run
php artisan vendor:publish --tag=viewsto push the swaggervel index view file intoresources/views/vendor/swaggervel.
Examples (when using the default configuration)
- www.example.com/docs <- You may find your automatically generated Swagger .json-File there
- www.example.com/api/docs <- Access to your Swagger UI
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.
Further Notes
This package is a fork of slampenny/Swaggervel, as it is no longer maintained.
TODO
- the handling of the /doc call is still really inconsistent, as you cannot change the file name (api-docs.json), but are able to change the file you acces when using the /doc route.
Alternatives to appointer/swaggervel
Zero-config OpenAPI documentation generator for Laravel modular applications
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.5 | >=5.6.0 | ^5.0| | MIT | |
| v2.4 | >=5.6.0 | ^5.0 | MIT | |
| v2.3.1 | >=5.6.0 | ^5.0 | MIT | |
| v2.3 | >=5.6.0 | ^5.0 | MIT | |
| v2.2 | >=5.6.0 | ^5.0 | MIT | |
| v2.1.1 | >=5.6.0 | ^5.0 | MIT | |
| v2.1 | >=5.6.0 | ^5.0 | MIT | |
| v2.0.2 | >=5.6.0 | ~5.0 | MIT | |
| v2.0.1 | >=5.6.0 | ~5.0 | MIT | |
| v2.0.0 | >=5.6.0 | ~5.0 | MIT | |
| v1.2.2 | >=5.4.0 | MIT | ||
| v1.2.1 | >=5.4.0 | MIT | ||
| v1.2 | >=5.4.0 | MIT | ||
| v1.1.0 | >=5.4.0 | MIT | ||
| v1.0.4 | >=5.4.0 | MIT | ||
| v1.0.3 | >=5.4.0 | MIT | ||
| v1.0.2 | >=5.4.0 | MIT | ||
| v1.0.1 | >=5.3.0 | MIT | ||
| v1.0 | >=5.3.0 | MIT |