Download the PHP package weburnit/swaggeravel without Composer
On this page you can find all versions of the php package weburnit/swaggeravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download weburnit/swaggeravel
More information about weburnit/swaggeravel
Files in weburnit/swaggeravel
Package swaggeravel
Short Description This package allows you to: generate RESTful API document using Swagger PHP.
License MIT
Homepage https://github.com/weburnit/swaggeravel
Informations about the package swaggeravel
Swagger/LaraSwagger
This package is a wrapper of Swagger-php and makes it easy to integrate with Lumen/Larvarel.
Usage
Installation
Via Composer
Add information about new package in your composer.json
After the composer install finishes, register the service provider:
-
Lumen Application:
- Laravel Application: not supports yet.
Now you can rock with LaraSwagger:
-
Run
php artisan swagger:generate file_name [base_host]
: to generate swagger api docs. - Go to
/swagger/api-docs
(default routing config) to see swagger api docs in JSON format
Default configuration
Customize configuration
In order to change default config you can copy the configuration template in config/lara-swagger.php
to your application's config
directory and modify according to your needs.
For more information see the Configuration Files section in the Lumen documentation.
Tests
See test result at ./build
All versions of swaggeravel with dependencies
illuminate/console Version 5.*
illuminate/routing Version 5.*
illuminate/support Version 5.*
zircote/swagger-php Version 2.*@dev