Package Data | |
---|---|
Maintainer Username: | acropixel |
Maintainer Contact: | github@acropixel.com (Damian Redpath) |
Package Create Date: | 2016-08-01 |
Package Last Update: | 2017-10-11 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-21 03:01:04 |
Package Statistics | |
---|---|
Total Downloads: | 4,165 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 3 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
Swagger 2.0 for Laravel >=5.1
This package is a wrapper of Swagger-php and swagger-ui adapted to work with Laravel 5.
composer require "damian-nz/l5-swagger:~4.0"
Thanks to package auto discovery in Laravel 5.5, that's it!
config/l5-swagger.php
file (make a copy if needed)public/vendor/l5-swagger
directoryresources/views/vendor/l5-swagger
directoryl5-swagger:publish
to publish new swagger-ui view and configurationconfig/l5-swagger.php
filel5-swagger:publish
to publish everythingl5-swagger:publish-config
to publish configs (config/l5-swagger.php
)l5-swagger:publish-assets
to publish swagger-ui to your public folder (public/vendor/l5-swagger
)l5-swagger:publish-views
to publish views (resources/views/vendor/l5-swagger
) - only for versions <= 4.0l5-swagger:generate
to generate docs or set generate_always
param to true
in your config or .env fileThe actual Swagger spec is beyond the scope of this package. All L5-Swagger 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.
Help me out the original package creator buy a round of :beers:!